File size: 414 Bytes
253a237 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | """Utility script to visualize the trip planning graph."""
from graph import display_graph, print_graph_ascii, save_graph_image
import sys
if __name__ == "__main__":
if len(sys.argv) > 1:
# If output file specified, save to that file
output_file = sys.argv[1]
save_graph_image(output_file)
else:
# Otherwise, display everything (ASCII + save PNG)
display_graph()
|