case class Edge[ED](srcId: VertexId = 0, dstId: VertexId = 0, attr: ED = null.asInstanceOf[ED]) extends Serializable with Product
A single directed edge consisting of a source id, target id, and the data associated with the edge.
- ED
type of the edge attribute
- srcId
The vertex id of the source vertex
- dstId
The vertex id of the target vertex
- attr
The attribute associated with the edge
- Source
- Edge.scala
- Alphabetic
- By Inheritance
- Edge
- Product
- Equals
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
- var attr: ED
- var dstId: VertexId
-
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.
-
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.
- var srcId: VertexId