Bellman1 CPP
Bellman1 CPP
cpp Page 1 of 1
#include <bits/stdc++.h>
using namespace std;
struct Edge {
int src, dest, wgt;
};
struct Graph {
int V, E;
vector<Edge> edges;
Graph(int V, int E) : V(V), E(E), edges(E) {}
};
printArr(dist);
}
int main() {
int V, E;
cout << "Enter number of vertices and edges: ";
cin >> V >> E;
bellmanFord(graph, 0);
return 0;
}