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

public class EdgeTriplet<VD,ED> extends Edge<ED>
An edge triplet represents an edge along with the vertex attributes of its neighboring vertices.

See Also:
  • Constructor Details

    • EdgeTriplet

      public EdgeTriplet()
  • Method Details

    • dstAttr

      public VD dstAttr()
      The destination vertex attribute
      Returns:
      (undocumented)
    • otherVertexAttr

      public VD otherVertexAttr(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 attribute for the other vertex on the edge
    • srcAttr

      public VD srcAttr()
      The source vertex attribute
      Returns:
      (undocumented)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toTuple

      public scala.Tuple3<scala.Tuple2<Object,VD>,scala.Tuple2<Object,VD>,ED> toTuple()
    • vertexAttr

      public VD vertexAttr(long vid)
      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