static class LinkedDirectedGraph.LinkedDirectedGraphEdge<N,E> extends java.lang.Object implements DiGraph.DiGraphEdge<N,E>, GraphvizGraph.GraphvizEdge
| Modifier and Type | Field and Description |
|---|---|
private DiGraph.DiGraphNode<N,E> |
destNode |
private DiGraph.DiGraphNode<N,E> |
sourceNode |
protected E |
value |
| Constructor and Description |
|---|
LinkedDirectedGraphEdge(DiGraph.DiGraphNode<N,E> sourceNode,
E edgeValue,
DiGraph.DiGraphNode<N,E> destNode)
Constructor.
|
| 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 edge.
|
DiGraph.DiGraphNode<N,E> |
getDestination() |
java.lang.String |
getLabel()
Retrieves the label of the edge.
|
java.lang.String |
getNode1Id()
Get the first node in the edge.
|
java.lang.String |
getNode2Id()
Get the second node in the edge.
|
GraphNode<N,E> |
getNodeA() |
GraphNode<N,E> |
getNodeB() |
DiGraph.DiGraphNode<N,E> |
getSource() |
E |
getValue()
Retrieves the edge's value.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
void |
setDestination(DiGraph.DiGraphNode<N,E> node) |
void |
setSource(DiGraph.DiGraphNode<N,E> node) |
java.lang.String |
toString() |
private DiGraph.DiGraphNode<N,E> sourceNode
private DiGraph.DiGraphNode<N,E> destNode
protected final E value
LinkedDirectedGraphEdge(DiGraph.DiGraphNode<N,E> sourceNode, E edgeValue, DiGraph.DiGraphNode<N,E> destNode)
edgeValue - Edge Value.public DiGraph.DiGraphNode<N,E> getSource()
getSource in interface DiGraph.DiGraphEdge<N,E>public DiGraph.DiGraphNode<N,E> getDestination()
getDestination in interface DiGraph.DiGraphEdge<N,E>public void setDestination(DiGraph.DiGraphNode<N,E> node)
setDestination in interface DiGraph.DiGraphEdge<N,E>public void setSource(DiGraph.DiGraphNode<N,E> node)
setSource in interface DiGraph.DiGraphEdge<N,E>public E getValue()
Graph.GraphEdgegetValue in interface Graph.GraphEdge<N,E>public <A extends Annotation> A getAnnotation()
AnnotatablegetAnnotation in interface Annotatablenull if the object has not
been annotated.public void setAnnotation(Annotation data)
AnnotatablesetAnnotation in interface Annotatabledata - Information to be annotated.public java.lang.String getColor()
GraphvizGraph.GraphvizEdgegetColor in interface GraphvizGraph.GraphvizEdgepublic java.lang.String getLabel()
GraphvizGraph.GraphvizEdgegetLabel in interface GraphvizGraph.GraphvizEdgepublic java.lang.String getNode1Id()
GraphvizGraph.GraphvizEdgegetNode1Id in interface GraphvizGraph.GraphvizEdgepublic java.lang.String getNode2Id()
GraphvizGraph.GraphvizEdgegetNode2Id in interface GraphvizGraph.GraphvizEdgepublic java.lang.String toString()
toString in class java.lang.Object