示例#1
0
 def ConexComponentsDFS(self):
     '''
     Creates all the conex components using a dfs algorithm
     '''
     tree = Trees.Trees()
     for vertex in self.__vertices:
         if not tree.isVertex(vertex):
             tree.newRoot(vertex)
             self.DFS(tree, vertex)
             #print(tree.ThisRoot(vertex))
             print(self.store_edges)