public class AbstractEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>> extends Object implements GraphEdge<ActualEdgeType,VertexType>
GraphEdge,
AbstractGraph,
AbstractVertex| Constructor and Description |
|---|
AbstractEdge(VertexType source,
VertexType target)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ActualEdgeType other) |
boolean |
equals(Object o) |
int |
getLabel()
Get the integer label.
|
VertexType |
getSource()
Get the source vertex.
|
VertexType |
getTarget()
Get the target vertex.
|
int |
hashCode() |
void |
setLabel(int label)
Set the integer label.
|
public AbstractEdge(VertexType source, VertexType target)
source - the source vertex of the edgetarget - the target vertex of the edgepublic VertexType getSource()
GraphEdgegetSource in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>public VertexType getTarget()
GraphEdgegetTarget in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>public int getLabel()
GraphEdgegetLabel in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>public void setLabel(int label)
GraphEdgesetLabel in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>public int compareTo(ActualEdgeType other)
compareTo in interface Comparable<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>>Copyright © 2003–2015. All rights reserved.