Method: RGL::MutableGraph#add_edge

Defined in:
lib/rgl/mutable.rb

#add_edge(u, v) ⇒ Object

Inserts the edge (u,v) into the graph.

Note that for undirected graphs, (u,v) is the same edge as (v,u), so after a call to the function #add_edge, this implies that edge (u,v) will appear in the out-edges of u and (u,v) (or equivalently (v,u)) will appear in the out-edges of v. Put another way, v will be adjacent to u and u will be adjacent to v.

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/rgl/mutable.rb', line 29

def add_edge(u, v)
  raise NotImplementedError
end