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()
Edge
public String getLabel()
Edge
public void setLabel(String label)
Edge
public void setWeight(double weight)
public Graph<V> getGraph()
Edge
public V getSource()
Edge
public V getDestination()
Edge
getDestination
in interface Edge<V extends Node<V>>
public double getWeight()
Edge
public RelationType getType()
Edge
StandardRelationType.DEFAULT
should
be returned.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.