Module: RGL::GraphWrapper

Included in:
GraphIterator, GraphVisitor
Defined in:
lib/rgl/traversal.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#graphObject

Returns the value of attribute graph.



20
21
22
# File 'lib/rgl/traversal.rb', line 20

def graph
  @graph
end

Instance Method Details

#initialize(graph) ⇒ Object

Creates a new GraphWrapper on graph.



23
24
25
# File 'lib/rgl/traversal.rb', line 23

def initialize (graph)
  @graph = graph
end