Edges should join vertices #5

D4L opened this Issue Dec 30, 2012 · 0 comments


None yet

1 participant

D4L commented Dec 30, 2012

A graph should be able to add, join, and delete edges

recommended ruby code:

myGraph = Graph.new                                #=> myGraph
myGraph.addVertex "Vertex1"                        #=> myGraph
myGraph.addVertex "Vertex2"                        #=> myGraph
myGraph.add_edge( "MyEdge", "Vertex1", "Vertex2" ) #=> myGraph
myGraph.has_edge? "MyEdge"                         #=> true
myGraph.delete_edge! "MyEdge"                      #=> myGraph
@D4L D4L added a commit that referenced this issue Jan 6, 2013
@D4L Enable querying for edges. Part of #5 2127798
@D4L D4L closed this in ec7211a Jan 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment