Package org.apache.spark.graphx
Class Edge<ED>
Object
org.apache.spark.graphx.Edge<ED>
- Type Parameters:
- 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 
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
- Direct Known Subclasses:
- EdgeTriplet
A single directed edge consisting of a source id, target id,
 and the data associated with the edge.
 
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionattr()longdstId()longotherVertexId(long vid) Given one vertex in the edge return the other vertex.relativeDirection(long vid) Return the relative direction of the edge to the corresponding vertex.longsrcId()Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
Edge
 
- 
- 
Method Details- 
srcIdpublic long srcId()
- 
dstIdpublic long dstId()
- 
attr
- 
otherVertexIdpublic long otherVertexId(long vid) Given one vertex in the edge return the other vertex.- Parameters:
- vid- the id one of the two vertices on the edge.
- Returns:
- the id of the other vertex on the edge.
 
- 
relativeDirectionReturn the relative direction of the edge to the corresponding vertex.- Parameters:
- vid- the id of one of the two vertices in the edge.
- Returns:
- the relative direction of the edge to the corresponding vertex.
 
 
-