Class: EdgeColoringGraph
- Inherits:
-
Object
- Object
- EdgeColoringGraph
- Defined in:
- lib/edge_coloring_graph.rb
Instance Method Summary collapse
- #edge(x, y) ⇒ Object
-
#initialize(map) ⇒ EdgeColoringGraph
constructor
A new instance of EdgeColoringGraph.
Constructor Details
#initialize(map) ⇒ EdgeColoringGraph
Returns a new instance of EdgeColoringGraph.
3 4 5 |
# File 'lib/edge_coloring_graph.rb', line 3 def initialize map @edges = map end |
Instance Method Details
#edge(x, y) ⇒ Object
7 8 9 |
# File 'lib/edge_coloring_graph.rb', line 7 def edge(x, y) @edges[x][y] end |