static class LinkedUndirectedGraph.LinkedUndirectedGraphEdge<N,E> extends java.lang.Object implements UndiGraph.UndiGraphEdge<N,E>, GraphvizGraph.GraphvizEdge
| Modifier and Type | Field and Description |
|---|---|
private UndiGraph.UndiGraphNode<N,E> |
nodeA |
private UndiGraph.UndiGraphNode<N,E> |
nodeB |
protected E |
value |
| Constructor and Description |
|---|
LinkedUndirectedGraphEdge(UndiGraph.UndiGraphNode<N,E> nodeA,
E edgeValue,
UndiGraph.UndiGraphNode<N,E> nodeB) |
| 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.
|
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() |
E |
getValue()
Retrieves the edge's value.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
java.lang.String |
toString() |
private UndiGraph.UndiGraphNode<N,E> nodeA
private UndiGraph.UndiGraphNode<N,E> nodeB
protected final E value
LinkedUndirectedGraphEdge(UndiGraph.UndiGraphNode<N,E> nodeA, E edgeValue, UndiGraph.UndiGraphNode<N,E> nodeB)
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