Sha256: e24d7d36ae1a717c4a44694e177141dbbb1f00860e0ee634829ffe6566c64a11
Contents?: true
Size: 355 Bytes
Versions: 6
Compression:
Stored size: 355 Bytes
Contents
require 'stream' require 'rgl/graph_wrapper' module RGL # A GraphIterator is the abstract basis for all Iterators on graphs. # Each graph iterator should implement the protocol defined in module Stream. # module GraphIterator include Stream include GraphWrapper def length inject(0) { |sum| sum + 1 } end end end # RGL
Version data entries
6 entries across 6 versions & 1 rubygems