Download visualize_graph.py from HARoo70/lazyyy: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/HARoo70/lazyyy/resolve/main/visualize_graph.py
- Command line
-
hf download hf://spaces/HARoo70/lazyyy/visualize_graph.py
-
curl -L -o visualize_graph.py https://huggingface.co/spaces/HARoo70/lazyyy/resolve/main/visualize_graph.py
414 Bytes
| """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() | |