Skip to content

Commit 941c3de

Browse files
iampratik13Copilot
andauthored
Update graph_algorithms/floyd_warshall.r
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent bc2476f commit 941c3de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

graph_algorithms/floyd_warshall.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ demonstrate_floyd_warshall <- function() {
279279
cat("\n=== Demo Complete ===\n")
280280
}
281281

282-
# Run demonstration if not in interactive mode
283-
if (!interactive()) {
282+
# Run demonstration only if explicitly requested via environment variable
283+
if (identical(Sys.getenv("RUN_FLOYD_WARSHALL_DEMO"), "true")) {
284284
demonstrate_floyd_warshall()
285285
}

0 commit comments

Comments
 (0)