The document describes a program to find the shortest path between vertices in a graph using the Bellman-Ford algorithm. The program takes in the number of vertices and an adjacency matrix representing the graph as input, runs the Bellman-Ford algorithm to calculate the shortest distances from the source vertex to all other vertices, and outputs these distances.
The document describes a program to find the shortest path between vertices in a graph using the Bellman-Ford algorithm. The program takes in the number of vertices and an adjacency matrix representing the graph as input, runs the Bellman-Ford algorithm to calculate the shortest distances from the source vertex to all other vertices, and outputs these distances.
The document describes a program to find the shortest path between vertices in a graph using the Bellman-Ford algorithm. The program takes in the number of vertices and an adjacency matrix representing the graph as input, runs the Bellman-Ford algorithm to calculate the shortest distances from the source vertex to all other vertices, and outputs these distances.