Module: RGL::GraphWrapper
- Included in:
- GraphIterator, GraphVisitor
- Defined in:
- lib/rgl/traversal.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#graph ⇒ Object
Returns the value of attribute graph.
Instance Method Summary collapse
-
#initialize(graph) ⇒ Object
Creates a new GraphWrapper on graph.
Instance Attribute Details
#graph ⇒ Object
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 |