Function graph_algorithms::main
source · [−]pub(crate) fn main()Expand description
The main function displays a list of different algorithms and allows the user to select one.
Sample input
Please Select Any One of the Algorithms Below:
1. Dijkstra’s algorithm
2. Bellman ford algorithm
3. Depth-First Search algorithm
4. Kosaraju’s algorithm
5. Breadth-First Search algorithm
6. Exit
******************
Please Enter your choice (ex:1): 1
******************
******Dijkstras Algorithm*******
After this you can continue entering the necessary inputs for the selected algorithm