C++ code: Different Graph connected

yxpan1996
Source.cpp

#include <iostream> #include "Graph.h" using namespace std; int main() { const int NUM_VERTICES = 4; Graph graph(NUM_VERTICES); graph.addEdge(0, 1); graph.addEdge(0, 2); graph.addEdge(1, 2); graph.addEdge(2, 3); cout << "Where do you want the transversal to start (0 through " << NUM_VERTICES << "): "; int start; cin >> start; graph.BFT(start); system("PAUSE"); return 0; }