Packages

c

org.apache.spark.graphx

EdgeTriplet

class EdgeTriplet[VD, ED] extends Edge[ED]

An edge triplet represents an edge along with the vertex attributes of its neighboring vertices.

VD

the type of the vertex attribute.

ED

the type of the edge attribute

Source
EdgeTriplet.scala
Linear Supertypes
Edge[ED], Product, Equals, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EdgeTriplet
  2. Edge
  3. Product
  4. Equals
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EdgeTriplet()

Value Members

  1. var attr: ED
    Definition Classes
    Edge
  2. var dstAttr: VD

    The destination vertex attribute

  3. var dstId: VertexId
    Definition Classes
    Edge
  4. def otherVertexAttr(vid: VertexId): VD

    Given one vertex in the edge return the other vertex.

    Given one vertex in the edge return the other vertex.

    vid

    the id one of the two vertices on the edge

    returns

    the attribute for the other vertex on the edge

  5. def otherVertexId(vid: VertexId): VertexId

    Given one vertex in the edge return the other vertex.

    Given one vertex in the edge return the other vertex.

    vid

    the id one of the two vertices on the edge.

    returns

    the id of the other vertex on the edge.

    Definition Classes
    Edge
  6. def relativeDirection(vid: VertexId): EdgeDirection

    Return the relative direction of the edge to the corresponding vertex.

    Return the relative direction of the edge to the corresponding vertex.

    vid

    the id of one of the two vertices in the edge.

    returns

    the relative direction of the edge to the corresponding vertex.

    Definition Classes
    Edge
  7. var srcAttr: VD

    The source vertex attribute

  8. var srcId: VertexId
    Definition Classes
    Edge
  9. def toString(): String
    Definition Classes
    EdgeTripletEdge → AnyRef → Any
  10. def toTuple: ((VertexId, VD), (VertexId, VD), ED)
  11. def vertexAttr(vid: VertexId): VD

    Get the vertex object for the given vertex in the edge.

    Get the vertex object for the given vertex in the edge.

    vid

    the id of one of the two vertices on the edge

    returns

    the attr for the vertex with that id