public final class Node extends Element
Edge| Red (cxh) |
| Red (cxh) |
| Constructor and Description |
|---|
Node()
Construct an unweighted node.
|
Node(java.lang.Object weight)
Construct a node with a given node weight.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
descriptor()
A one-word description of the type of this graph element.
|
java.lang.String |
toString()
Return a string representation of the node.
|
getWeight, hasWeight, removeWeight, setWeightpublic Node()
public Node(java.lang.Object weight)
weight - The given weight.java.lang.IllegalArgumentException - If the specified weight is
null.public java.lang.String descriptor()
descriptor in class Elementpublic java.lang.String toString()
"<unweighted node>" if
the node is unweighted.toString in class java.lang.Object