public static class LinkedDirectedGraph.LinkedDirectedGraphNode<N,E> extends java.lang.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.
|
java.lang.String |
getColor()
Retrieves color of the node.
|
java.lang.String |
getId()
Retrieves the unique ID.
|
java.util.List<DiGraph.DiGraphEdge<N,E>> |
getInEdges() |
java.lang.String |
getLabel()
Retrieves the label of the node.
|
java.util.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.
|
java.lang.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 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
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<DiGraph.DiGraphEdge<N,E>> getInEdges()
getInEdges
in interface DiGraph.DiGraphNode<N,E>
public java.util.List<DiGraph.DiGraphEdge<N,E>> getOutEdges()
getOutEdges
in interface DiGraph.DiGraphNode<N,E>
Copyright © 2009-2018 Google. All Rights Reserved.