Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Edges should join vertices #5

Closed
D4L opened this Issue · 0 comments

1 participant

@D4L
Owner

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 closed this in ec7211a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.