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.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