module RGL::GraphIterator
A GraphIterator
is the abstract basis for all Iterators on graphs. Each graph iterator should implement the protocol defined in module Stream.
Public Instance Methods
length()
click to toggle source
# File lib/rgl/graph_iterator.rb 14 def length 15 inject(0) { |sum| sum + 1 } 16 end