N
- node type of the graphpublic interface NodeIDs<N>
Modifier and Type | Method and Description |
---|---|
N |
getNode(int id)
Return for a given id the node of the graph identified by it.
|
int |
getNodeId(N node)
Returns for a given node of the graph an integer uniquely identifying the node.
|
int getNodeId(N node)
node
- the node whose id should be retrievedIllegalArgumentException
- if node
does not belong to the graph.N getNode(int id)
id
- the id of the node to be returnedid
.IllegalArgumentException
- if the given id
does not identify a node of the graph.Copyright © 2020. All rights reserved.