object GraphImpl extends Serializable
- Source
- GraphImpl.scala
- Alphabetic
- By Inheritance
- GraphImpl
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[VD, ED](vertices: VertexRDD[VD], edges: EdgeRDD[ED])(implicit arg0: ClassTag[VD], arg1: ClassTag[ED]): GraphImpl[VD, ED]
Create a graph from a VertexRDD and an EdgeRDD with arbitrary replicated vertices.
Create a graph from a VertexRDD and an EdgeRDD with arbitrary replicated vertices. The VertexRDD must already be set up for efficient joins with the EdgeRDD by calling
VertexRDD.withEdges
or an appropriate VertexRDD constructor. -
def
apply[VD, ED](vertices: RDD[(VertexId, VD)], edges: RDD[Edge[ED]], defaultVertexAttr: VD, edgeStorageLevel: StorageLevel, vertexStorageLevel: StorageLevel)(implicit arg0: ClassTag[VD], arg1: ClassTag[ED]): GraphImpl[VD, ED]
Create a graph from vertices and edges, setting missing vertices to
defaultVertexAttr
. -
def
apply[VD, ED](edges: RDD[Edge[ED]], defaultVertexAttr: VD, edgeStorageLevel: StorageLevel, vertexStorageLevel: StorageLevel)(implicit arg0: ClassTag[VD], arg1: ClassTag[ED]): GraphImpl[VD, ED]
Create a graph from edges, setting referenced vertices to
defaultVertexAttr
. -
def
fromEdgePartitions[VD, ED](edgePartitions: RDD[(PartitionID, EdgePartition[ED, VD])], defaultVertexAttr: VD, edgeStorageLevel: StorageLevel, vertexStorageLevel: StorageLevel)(implicit arg0: ClassTag[VD], arg1: ClassTag[ED]): GraphImpl[VD, ED]
Create a graph from EdgePartitions, setting referenced vertices to
defaultVertexAttr
. -
def
fromExistingRDDs[VD, ED](vertices: VertexRDD[VD], edges: EdgeRDD[ED])(implicit arg0: ClassTag[VD], arg1: ClassTag[ED]): GraphImpl[VD, ED]
Create a graph from a VertexRDD and an EdgeRDD with the same replicated vertex type as the vertices.
Create a graph from a VertexRDD and an EdgeRDD with the same replicated vertex type as the vertices. The VertexRDD must already be set up for efficient joins with the EdgeRDD by calling
VertexRDD.withEdges
or an appropriate VertexRDD constructor.