CLI Usage
The Command-Line Interface (CLI) is a powerful way to interact with the application, allowing you to calculate shortest paths, manage datasets, and customize settings.
Starting the CLI
Once the macLinuxProjectBuilder.sh or windowsProjectBuilder.bat script completes, the terminal will display the following prompt:
Enter a command or the start node:This indicates that the program is ready to accept commands or input for shortest path calculations.
Basic Commands
Node IDs
Enter a start node (integer between 1 and 23,947,347), and the program will prompt for an end node.
The shortest path between the nodes will be calculated and displayed.
Example:
Enter a command or the start node: 1 Enter the end node: 5 Shortest path: [1 -> 3 -> 5] Distance: 12.5
Commands
Enter keywords to perform specific actions. For example:
help: Lists all available commands.build graph: Rebuilds the graph structure from the dataset.
Advanced Commands
comparator
comparatorActivates "Comparator Mode," which compares results from A* and Dijkstra for the same path.
Example:
weight
weightPrompts for a new heuristic weight for A*.
Example:
build lm
build lmRebuilds landmarks for improved pathfinding performance.
Exiting the CLI
Type
exitto terminate the application.The API server (if running) will also stop.
Example:
Last updated