Class: EdgeColoringGraph

Inherits:
Object
  • Object
show all
Defined in:
lib/edge_coloring_graph.rb

Instance Method Summary collapse

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