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