Module: RGL::GraphWrapper
- Included in:
- GraphIterator, GraphVisitor
- Defined in:
- lib/rgl/graph_wrapper.rb
Instance Attribute Summary collapse
- 
  
    
      #graph  ⇒ Graph 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The wrapped graph. 
Instance Method Summary collapse
- 
  
    
      #initialize(graph)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Creates a new GraphWrapper on graph. 
Instance Attribute Details
#graph ⇒ Graph
Returns 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 |