public class AbstractEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>> extends java.lang.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(java.lang.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 hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(ActualEdgeType other)
compareTo in interface java.lang.Comparable<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>>FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.