public BFS(UndirectedGraph g) { this.g = g; isConnected = new bool[g.GetVertexCount()]; pathVertexes = new int[g.GetVertexCount()]; }
public DFS(UndirectedGraph g) { this.g = g; isConnected = new bool[g.GetVertexCount()]; }