Method: RGL::Graph#bfs_iterator
- Defined in:
- lib/rgl/traversal.rb
#bfs_iterator(v = self.detect { |x| true }) ⇒ BFSIterator
Returns starting at vertex v.
111 112 113 |
# File 'lib/rgl/traversal.rb', line 111 def bfs_iterator(v = self.detect { |x| true }) BFSIterator.new(self, v) end |