lib/rgl/traversal.rb in rgl-0.5.10 vs lib/rgl/traversal.rb in rgl-0.6.0

- old
+ new

@@ -102,10 +102,11 @@ @waiting.shift end end # class BFSIterator + module Graph # @return [BFSIterator] starting at vertex _v_. def bfs_iterator(v = self.detect { |x| true }) BFSIterator.new(self, v) @@ -158,9 +159,10 @@ include GraphVisitor def_event_handler 'start_vertex' end # class DFSVisitor + module Graph # @return [DFSIterator] staring at vertex _v_. def dfs_iterator(v = self.detect { |x| true })