Class: RGL::EdgePropertiesMap

### Home Classes Methods

### In Files

- lib/rgl/edge_properties_map.rb

### Parent

Object

### Methods

- ::new
- #edge_property

### Class/Module Index

Quicksearch

- RGL
- RGL::AdjacencyGraph
- RGL::BFSIterator
- RGL::BellmanFordAlgorithm
- RGL::BellmanFordVisitor
- RGL::BidirectionalGraph
- RGL::BipartiteBFSIterator
- RGL::DFSIterator
- RGL::DFSVisitor
- RGL::DOT
- RGL::DOT::Digraph
- RGL::DOT::DirectedEdge
- RGL::DOT::Edge
- RGL::DOT::Element
- RGL::DOT::Graph
- RGL::DOT::Node
- RGL::DOT::Port
- RGL::DOT::Subgraph
- RGL::DijkstraAlgorithm
- RGL::DijkstraVisitor
- RGL::DirectedAdjacencyGraph
- RGL::Edge
- RGL::Edge::DirectedEdge
- RGL::Edge::UnDirectedEdge
- RGL::EdgePropertiesMap
- RGL::EdmondsKarpAlgorithm
- RGL::EdmondsKarpAlgorithm::EdmondsKarpBFSIterator
- RGL::Graph
- RGL::Graph::TarjanSccVisitor
- RGL::GraphIterator
- RGL::GraphVisitor
- RGL::GraphVisitor::ClassMethods
- RGL::GraphVisitor::DistanceMapSupport
- RGL::ImplicitGraph
- RGL::MutableGraph
- RGL::MutableGraph::MutableGraphParser
- RGL::NoEdgeError
- RGL::NoVertexError
- RGL::NonNegativeEdgePropertiesMap
- RGL::NotDirectedError
- RGL::NotUndirectedError
- RGL::PrimAlgorithm
- RGL::TopsortIterator
- Enumerable
- Object

No matching classes.

# RGL::EdgePropertiesMap

### Public Class Methods

new(edge_properties_map, directed) click to toggle source

    # File lib/rgl/edge_properties_map.rb, line 5
    def initialize(edge_properties_map, directed)
      @edge_properties_map = edge_properties_map
      @directed = directed

      check_properties
    end

### Public Instance Methods

edge_property(u, v) click to toggle source

    # File lib/rgl/edge_properties_map.rb, line 12
    def edge_property(u, v)
      if @directed
        property = @edge_properties_map[[u, v]]
      else
        property = @edge_properties_map[[u, v]] || @edge_properties_map[[v, u]]
      end

      validate_property(property, u, v)

      property
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.