static class LinkedUndirectedGraph.AnnotatedLinkedUndirectedGraphNode<N,E> extends LinkedUndirectedGraph.LinkedUndirectedGraphNode<N,E>
Modifier and Type | Field and Description |
---|---|
protected Annotation |
annotation |
Constructor and Description |
---|
AnnotatedLinkedUndirectedGraphNode(N nodeValue) |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation()
Retrieves a piece of information that has been annotated.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
getColor, getId, getLabel, getNeighborEdges, getNeighborEdgesIterator, getValue
protected Annotation annotation
AnnotatedLinkedUndirectedGraphNode(N nodeValue)
public <A extends Annotation> A getAnnotation()
Annotatable
getAnnotation
in interface Annotatable
getAnnotation
in class LinkedUndirectedGraph.LinkedUndirectedGraphNode<N,E>
null
if the object has not
been annotated.public void setAnnotation(Annotation data)
Annotatable
setAnnotation
in interface Annotatable
setAnnotation
in class LinkedUndirectedGraph.LinkedUndirectedGraphNode<N,E>
data
- Information to be annotated.