public static class LinkedDirectedGraph.LinkedDiGraphEdge<N,E> extends java.lang.Object implements DiGraph.DiGraphEdge<N,E>, GraphvizGraph.GraphvizEdge
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.
|
LinkedDirectedGraph.LinkedDiGraphNode<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() |
LinkedDirectedGraph.LinkedDiGraphNode<N,E> |
getSource() |
E |
getValue()
Retrieves the edge's value.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
java.lang.String |
toString() |
protected final E value
public LinkedDirectedGraph.LinkedDiGraphNode<N,E> getSource()
getSource
in interface DiGraph.DiGraphEdge<N,E>
public LinkedDirectedGraph.LinkedDiGraphNode<N,E> getDestination()
getDestination
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
Copyright © 2009-2020 Google. All Rights Reserved.