org.grinvin.graphs
Interface Edge
- Element
- DefaultEdge
Represents a single (possibly directed) edge in a graph. Every edge
has two vertices as endpoints, called 'first' and 'second' endpoint.
The order of these vertices is immaterial when the graph is undirected.
When an edge belongs to a graph, also its endpoints should be
vertices of that graph.
getFirstEndpoint
public Vertex getFirstEndpoint()
The first endpoint vertex of this edge.
- The first endpoint of this edge
getSecondEndpoint
public Vertex getSecondEndpoint()
The second endpoint vertex of this edge.
- The second endpoint of this edge