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
- Alphabetic
- By Inheritance
- EdgeTriplet
- Edge
- Product
- Equals
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new EdgeTriplet()
Value Members
- var attr: ED
- Definition Classes
- Edge
- var dstAttr: VD
The destination vertex attribute
- var dstId: VertexId
- Definition Classes
- Edge
- 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
- 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
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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
- var srcAttr: VD
The source vertex attribute
- var srcId: VertexId
- Definition Classes
- Edge
- def toString(): String
- Definition Classes
- EdgeTriplet → Edge → AnyRef → Any
- def toTuple: ((VertexId, VD), (VertexId, VD), ED)
- 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