Implementing Dijkstra’s Algorithm
Write a program to read a graph, which represents a connectednetwork of routers, from a file, and output the forwarding tablesfor every node in the graph. You need to run Dijkstra’s algorithmat each node to output the forwarding table at that node.
Here is an example graph consisting of 4 nodes (A, B, C, and D) and four links. 1 The file that contains the graph data can look
OR
OR