Method: AbstractGraph::Graph#change_edge_name

Defined in:
lib/abstract_graph/graph/change_edge_name.rb

#change_edge_name(s, snew) ⇒ Object

d: Change the name of an edge a: Changes the name of an edge by checking existing names and then adding our own t: t(rename), which is |edges + vertex| p: s is current name of edge, snew is requested name of edge r: returns graph if everything goes well, nil if it failed



11
12
13
14
# File 'lib/abstract_graph/graph/change_edge_name.rb', line 11

def change_edge_name( s, snew )
  return nil unless @edges.rename(s, snew)
  self
end