org.grinvin.graphs

Class DefaultEdge

Implemented Interfaces:
Edge, Element

public final class DefaultEdge
extends java.lang.Object
implements Edge

Default implementation of Edge.

Method Summary

Vertex
getFirstEndpoint()
The first endpoint vertex of this edge.
Vertex
getSecondEndpoint()
The second endpoint vertex of this edge.

Method Details

getFirstEndpoint

public Vertex getFirstEndpoint()
The first endpoint vertex of this edge.
Specified by:
getFirstEndpoint in interface Edge
Returns:
The first endpoint of this edge

getSecondEndpoint

public Vertex getSecondEndpoint()
The second endpoint vertex of this edge.
Specified by:
getSecondEndpoint in interface Edge
Returns:
The second endpoint of this edge