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.GraphEdge
getValue
in interface Graph.GraphEdge<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 java.lang.String getColor()
GraphvizGraph.GraphvizEdge
getColor
in interface GraphvizGraph.GraphvizEdge
public java.lang.String getLabel()
GraphvizGraph.GraphvizEdge
getLabel
in interface GraphvizGraph.GraphvizEdge
public java.lang.String getNode1Id()
GraphvizGraph.GraphvizEdge
getNode1Id
in interface GraphvizGraph.GraphvizEdge
public java.lang.String getNode2Id()
GraphvizGraph.GraphvizEdge
getNode2Id
in interface GraphvizGraph.GraphvizEdge
public java.lang.String toString()
toString
in class java.lang.Object