K
- the key type for the sources and target verticesV
- the edge value typepublic class Edge<K,V> extends Tuple3<K,K,V>
vertices
,
the source and the target and can carry an attached value.
For edges with no value, use NullValue
as the value type.Constructor and Description |
---|
Edge() |
Edge(K source,
K target,
V value) |
Modifier and Type | Method and Description |
---|---|
K |
getSource() |
K |
getTarget() |
V |
getValue() |
Edge<K,V> |
reverse()
Reverses the direction of this Edge.
|
void |
setSource(K source) |
void |
setTarget(K target) |
void |
setValue(V value) |
copy, equals, getArity, getField, hashCode, of, setField, setFields, toString
getFieldNotNull, getTupleClass
public Edge<K,V> reverse()
public void setSource(K source)
public K getSource()
public void setTarget(K target)
public K getTarget()
public void setValue(V value)
public V getValue()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.