Question: Write a C++ program to read adjacency_matrix.txt file. Get the adjacency list from this file and print it on the execution screen (O means two

Write a C++ program to read adjacency_matrix.txt file. Get the adjacency list from this file and print it on the execution screen (O means two nodes are not connected, 1 means two nodes are connected) 0 0 adjacency_matrix - Notepad File Edit Format View Help 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 1 1 0 1 0 0 1 0 1 0 0 0 0 0 1 1 0 The edge / distance of the nodes is recorded in the distance_matrix.txt (0 means that the two points are not connected, other numbers indicate the distance between the two points) 0 distance_matrix - Notepad File Edit Format View Help 0 2 0 5 2 0 1 0 0 1 0 3 5 0 3 0 2 5 0 0 6 0 o 3 o 0 0 0 0 0 2 5 0 0 0 0 0 0 0 6 0 0 0 4 1 0 3 0 0 4 0 2 0 0 0 0 0 1 2 0 Please store the data and use Floyd's Shortest Paths Algorithm to find the shortest path to other nodes, so that the user can input the start and end points on the screen and print out the recommended shortest path sequence and total path length. Graph: 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
