def find_paths(self): return graph_analyse.find_paths( self.matrix) + graph_analyse.find_loops(self.matrix)
def find_paths(self): return graph_analyse.find_paths(self.matrix) + graph_analyse.find_loops(self.matrix)
def find_loops(self): loops = graph_analyse.find_loops(self.matrix) loops = list( set([tuple(graph_analyse.loop_from_looppath(x)) for x in loops])) return loops
def find_loops(self): loops = graph_analyse.find_loops(self.matrix) loops = list(set([tuple(graph_analyse.loop_from_looppath(x)) for x in loops])) return loops