public static class LinkedDirectedGraph.LinkedDirectedGraphNode<N,E> extends Object implements DiGraph.DiGraphNode<N,E>, GraphvizGraph.GraphvizNode
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation()
Retrieves a piece of information that has been annotated.
|
String |
getColor()
Retrieves color of the node.
|
String |
getId()
Retrieves the unique ID.
|
List<DiGraph.DiGraphEdge<N,E>> |
getInEdges() |
String |
getLabel()
Retrieves the label of the node.
|
List<DiGraph.DiGraphEdge<N,E>> |
getOutEdges() |
N |
getValue()
Retrieves the node's value.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
String |
toString() |
protected final N value
public N getValue()
GraphNode
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 String getColor()
GraphvizGraph.GraphvizNode
getColor
in interface GraphvizGraph.GraphvizNode
public String getId()
GraphvizGraph.GraphvizNode
getId
in interface GraphvizGraph.GraphvizNode
public String getLabel()
GraphvizGraph.GraphvizNode
getLabel
in interface GraphvizGraph.GraphvizNode
public List<DiGraph.DiGraphEdge<N,E>> getInEdges()
getInEdges
in interface DiGraph.DiGraphNode<N,E>
public List<DiGraph.DiGraphEdge<N,E>> getOutEdges()
getOutEdges
in interface DiGraph.DiGraphNode<N,E>
Copyright © 2009-2017 Google. All Rights Reserved.