Method: Logicle::Digraph#add_node

Defined in:
lib/logicle/digraph.rb

#add_node(id, node_type) ⇒ Object



23
24
25
# File 'lib/logicle/digraph.rb', line 23

def add_node(id, node_type)
  @nodes[id] = Node.new(id, node_type)
end