class Silicium::Graphs::UnorientedGraph
Public Instance Methods
add_edge!(from, to)
click to toggle source
# File lib/graph.rb, line 162 def add_edge!(from, to) protected_add_edge!(from, to) protected_add_edge!(to, from) @edge_number += 1 end
delete_edge!(from, to)
click to toggle source
# File lib/graph.rb, line 173 def delete_edge!(from, to) protected_delete_edge!(from, to) protected_delete_edge!(to, from) @edge_number -= 1 end
label_edge!(from, to, label)
click to toggle source
Calls superclass method
Silicium::Graphs::OrientedGraph#label_edge!
# File lib/graph.rb, line 168 def label_edge!(from, to, label) super(from, to, label) super(to, from, label) end