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