How to print graph using vector of vector ?[code]#include <iostream> #include <vector> using namespace std; void addEdge( vector<vector<int> > ...
Detection of Cycle in graph ( wrong output ) @doug4 : I tried to write comments wherever possible. I know I should have used "new" instead of ...
Detection of Cycle in graph ( wrong output ) test.txt file contains following inputs : [code]1 2 3 2 1 4 5 3 1 4 2 5 2[/code] First column con...
Detection of Cycle in graph ( wrong output ) [code]int main() { char line[100]; int N = 5; vector<int>adj[N]; FILE *in = fopen("test.txt",...
Graph representation using Map and set[code]Code : using namespace std; static int index = 0; class neighbor { public: ...
This user does not accept Private Messages