Class: Course::Conditional::UserSatisfiabilityGraph::EdgeSet

Inherits:
Hash
  • Object
show all
Defined in:
lib/autoload/course/conditional/user_satisfiability_graph.rb

Instance Method Summary collapse

Constructor Details

#initializeEdgeSet

Returns a new instance of EdgeSet


5
6
7
# File 'lib/autoload/course/conditional/user_satisfiability_graph.rb', line 5

def initialize
  super { |h, k| h[k] = Set.new }
end

Instance Method Details

#add(source, edge) ⇒ Object


9
10
11
# File 'lib/autoload/course/conditional/user_satisfiability_graph.rb', line 9

def add(source, edge)
  self[source] << edge
end