module RGL::GraphIterator
A GraphIterator
is the abstract basis for all Iterators on graphs. Each graph iterator should implement the protocol defined in module {rubydoc.info/github/monora/stream Stream}.
Public Instance Methods
Source
# File lib/rgl/graph_iterator.rb 16 def length 17 inject(0) { |sum| sum + 1 } 18 end
@return [int]