static class LinkedUndirectedGraph.LinkedUndirectedGraphNode<N,E> extends java.lang.Object implements UndiGraph.UndiGraphNode<N,E>, GraphvizGraph.GraphvizNode
Modifier and Type | Field and Description |
---|---|
private java.util.List<UndiGraph.UndiGraphEdge<N,E>> |
neighborEdges |
private N |
value |
Constructor and Description |
---|
LinkedUndirectedGraphNode(N nodeValue) |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation()
Retrieves a piece of information that has been annotated.
|
java.lang.String |
getColor()
Retrieves color of the node.
|
java.lang.String |
getId()
Retrieves the unique ID.
|
java.lang.String |
getLabel()
Retrieves the label of the node.
|
java.util.List<UndiGraph.UndiGraphEdge<N,E>> |
getNeighborEdges() |
java.util.Iterator<UndiGraph.UndiGraphEdge<N,E>> |
getNeighborEdgesIterator() |
N |
getValue()
Retrieves the node's value.
|
private java.util.List<GraphNode<N,E>> |
neighborList() |
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
private java.util.List<UndiGraph.UndiGraphEdge<N,E>> neighborEdges
private final N value
LinkedUndirectedGraphNode(N nodeValue)
public java.util.List<UndiGraph.UndiGraphEdge<N,E>> getNeighborEdges()
getNeighborEdges
in interface UndiGraph.UndiGraphNode<N,E>
public java.util.Iterator<UndiGraph.UndiGraphEdge<N,E>> getNeighborEdgesIterator()
getNeighborEdgesIterator
in interface UndiGraph.UndiGraphNode<N,E>
public <A extends Annotation> A getAnnotation()
Annotatable
getAnnotation
in interface Annotatable
null
if the object has not
been annotated.public void setAnnotation(Annotation data)
Annotatable
setAnnotation
in interface Annotatable
data
- Information to be annotated.public N getValue()
GraphNode
public java.lang.String getColor()
GraphvizGraph.GraphvizNode
getColor
in interface GraphvizGraph.GraphvizNode
public java.lang.String getId()
GraphvizGraph.GraphvizNode
getId
in interface GraphvizGraph.GraphvizNode
public java.lang.String getLabel()
GraphvizGraph.GraphvizNode
getLabel
in interface GraphvizGraph.GraphvizNode