N
- The type of Node stored in this Edgepublic interface Edge<N>
Modifier and Type | Method and Description |
---|---|
int |
getAdjacentNodeCount()
Returns the number of adjacent nodes to this Edge.
|
java.util.List<N> |
getAdjacentNodes()
Returns a List of the Nodes which are adjacent (connected) to the Edge.
|
N |
getNodeAt(int index)
Returns the Node at the given index in the Edge.
|
boolean |
isAdjacentNode(N node)
Returns true if the given Node is adjacent to this Edge.
|
N getNodeAt(int index)
index
- The index of the Node to be returnedjava.util.List<N> getAdjacentNodes()
int getAdjacentNodeCount()
boolean isAdjacentNode(N node)
node
- The Node to be tested