Question: C++ is the Language of the Program. Write a program that will implement the solution for the shortest path algorithm. Your program should ask if

 C++ is the Language of the Program. Write a program that

C++ is the Language of the Program.

Write a program that will implement the solution for the shortest path algorithm. Your program should ask if the the graph will have negative edges or all positive edges only. The program will use the appropriate algorithm to solve the shortest path of the graph. The program will ask how many NODES are in the graph and the adjency of the nodes of the graph, meaning the connecting vertices of the graph. The graph should only be a directed graph with weighted edges and should identify the STARTING NODE of the DIRECTRED GRAPH. Your program should be able to accept, MAXIMUM OF 10 NODES and MINIMUM OF 5 NODES. The program should be able to compute for the shortest path and the actual distance needed to travel from the STARTING NODE to the different nodes. The program should also be able to provide the users the OPTION to ASK for the shortest distance from the STARTING NODE to the NODE IDENTIFIED BY THE USERS of the program. Be sure to provide the screen shot of the OUTPUT RUN of the program and the program listing for this assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!