V - public class BaseEdge<V extends Node<V>> extends Object implements Edge<V>, Comparable<BaseEdge<V>>
| Constructor and Description |
|---|
BaseEdge(Graph<V> graph,
RelationType type,
String id,
V sourceNode,
V destinationNode) |
BaseEdge(Graph<V> graph,
String id,
V sourceNode,
V destinationNode) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BaseEdge<V> o) |
V |
getDestination()
Returns the node, that is on the destination end of this edge.
|
Graph<V> |
getGraph()
Returns the graph where this edge was created.
|
String |
getId()
Returns the identifier of this edge.
|
String |
getLabel()
Returns the label of this edge.
|
V |
getSource()
Returns the node, that is on the source end of this edge.
|
RelationType |
getType()
Returns the RelationType of the edge.
|
double |
getWeight()
Returns the weight of this edge.
|
int |
hashCode() |
void |
setLabel(String label)
Sets the label of this edge to the given string.
|
void |
setWeight(double weight) |
String |
toString() |
public String getId()
Edgepublic String getLabel()
Edgepublic void setLabel(String label)
Edgepublic void setWeight(double weight)
public Graph<V> getGraph()
Edgepublic V getSource()
Edgepublic V getDestination()
EdgegetDestination in interface Edge<V extends Node<V>>public double getWeight()
Edgepublic RelationType getType()
EdgeStandardRelationType.DEFAULT should
be returned.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.