Package org.apache.spark.graphx
Class EdgeTriplet<VD,ED>
Object
org.apache.spark.graphx.Edge<ED>
org.apache.spark.graphx.EdgeTriplet<VD,ED>
- Type Parameters:
VD
- the type of the vertex attribute.ED
- the type of the edge attribute
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
,scala.Serializable
An edge triplet represents an edge along with the vertex attributes of its neighboring vertices.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondstAttr()
The destination vertex attributeotherVertexAttr
(long vid) Given one vertex in the edge return the other vertex.srcAttr()
The source vertex attributetoString()
toTuple()
vertexAttr
(long vid) Get the vertex object for the given vertex in the edge.Methods inherited from class org.apache.spark.graphx.Edge
attr, dstId, otherVertexId, relativeDirection, srcId
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
EdgeTriplet
public EdgeTriplet()
-
-
Method Details
-
dstAttr
The destination vertex attribute- Returns:
- (undocumented)
-
otherVertexAttr
Given one vertex in the edge return the other vertex.- Parameters:
vid
- the id one of the two vertices on the edge- Returns:
- the attribute for the other vertex on the edge
-
srcAttr
The source vertex attribute- Returns:
- (undocumented)
-
toString
-
toTuple
-
vertexAttr
Get the vertex object for the given vertex in the edge.- Parameters:
vid
- the id of one of the two vertices on the edge- Returns:
- the attr for the vertex with that id
-