Add ability to rename vertices and edges #8

Closed
D4L opened this Issue Jan 8, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@D4L
Owner

D4L commented Jan 8, 2013

As more automated names get created, we may want to be able to rename the unique identifier known as the name of our vertices and edges.
Example:

graph = Graph.new
graph.add_vertex "MyVertex"
graph.change_vertex_name "MyVertex", "MyNewName"
graph.has_vertex? "MyNewName"                    # => true

Note that the name has to be unique with the other names and the old name must be able to be reused.

@D4L D4L closed this in dd58b25 Jan 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment