- addEdge(Vertex, Vertex) - Method in class jto.p5graphtheory.Graph
-
This creates a new Edge
connecting the two
given vertices and adds it to the set of Edges.
If either of the two vertices of the new Edge
are not in this
Graph
, then they are also added.
- addEdge(Edge) - Method in class jto.p5graphtheory.Graph
-
This adds the given Edge
to the Graph
.
This also adds the Edge's vertices if they are not in the Graph
.
- addIncidentEdge(Edge) - Method in class jto.p5graphtheory.Vertex
-
This add's an edge to the Vertex's list of incident edges.
- addVertex(Vertex) - Method in class jto.p5graphtheory.Graph
-
Adds a vertex to the TreeSet of Vertices or does nothing if
the vertex is already in the graph.