DSA_Practical 8
DSA_Practical 8
matrix
A B C D E
A [ 0, 10, 15, 0, 0]
B [ 10, 0, 0, 12, 0]
C [ 15, 0, 0, 0, 5]
D [ 0, 12, 0, 0, 10]
E [ 0, 0, 5, 10, 0]
*/
#include <iostream>
#include <vector>
#include <limits> #include
<utility>
using namespace std;
int main() {
// Adjacency matrix representation of the graph
int graph[V][V] = { {0, 10, 15, 0, 0},
{10, 0, 0, 12, 0},
{15, 0, 0, 0, 5},
{0, 12, 0, 0, 10},
{0, 0, 5, 10, 0}
};
return 0;
}
Output:-