class Tangle::Undirected::Simple::Graph
A simple graph, without loops and multiple edges
Protected Instance Methods
insert_edge(edge)
click to toggle source
Calls superclass method
Tangle::BaseGraphProtected#insert_edge
# File lib/tangle/undirected/simple/graph.rb, line 13 def insert_edge(edge) raise LoopError if edge.loop? raise MultiEdgeError if adjacent?(*edge.each_vertex) super end