Module: RGL::GraphWrapper

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#graphGraph

Returns the wrapped graph.

Returns:

  • (Graph)

    the wrapped graph



6
7
8
# File 'lib/rgl/graph_wrapper.rb', line 6

def graph
  @graph
end

Instance Method Details

#initialize(graph) ⇒ Object

Creates a new GraphWrapper on graph.



10
11
12
# File 'lib/rgl/graph_wrapper.rb', line 10

def initialize(graph)
  @graph = graph
end