ED
- type of the edge attribute
param: srcId The vertex id of the source vertex param: dstId The vertex id of the target vertex param: attr The attribute associated with the edge
public class Edge<ED>
extends Object
implements scala.Serializable, scala.Product
Modifier and Type | Method and Description |
---|---|
ED |
attr() |
long |
dstId() |
long |
otherVertexId(long vid)
Given one vertex in the edge return the other vertex.
|
EdgeDirection |
relativeDirection(long vid)
Return the relative direction of the edge to the corresponding
vertex.
|
long |
srcId() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Edge(long srcId, long dstId, ED attr)
public long srcId()
public long dstId()
public ED attr()
public long otherVertexId(long vid)
vid
- the id one of the two vertices on the edge.public EdgeDirection relativeDirection(long vid)
vid
- the id of one of the two vertices in the edge.