public class NodeWithNumber extends Object implements INodeWithNumber
NumberedGraph implementation.
Note that a NodeWithNumber can live it at most one NumberedGraph at a time. The NumberedGraph will mutate
the number here. So this is a bit fragile. Use this only if you know what you're doing.| Constructor and Description |
|---|
NodeWithNumber() |
| Modifier and Type | Method and Description |
|---|---|
int |
getGraphNodeId()
A non-negative integer which serves as an identifier for this node in
it's "dominant" graph.
|
void |
setGraphNodeId(int i) |
public int getGraphNodeId()
INodeWithNumbergetGraphNodeId in interface INodeWithNumberpublic void setGraphNodeId(int i)
setGraphNodeId in interface INodeWithNumber