Ejemplo n.º 1
0
 def discover_vertex(self, vertex, depth, graph):
     if depth > self.maxdepth:
         raise bfs.traversal_termination_exception(vertex)
     test_bfs_adaptor.discover_vertex(self, vertex, depth, graph)
Ejemplo n.º 2
0
    def discover_vertex(self, vertex, depth, graph):
	if depth > self.max_depth:
	    raise bfs.traversal_termination_exception(self.graph)