public class GraphGeneratorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static DataSet<Vertex<LongValue,NullValue>> |
vertexSequence(ExecutionEnvironment env,
int parallelism,
long vertexCount)
Generates
Vertices with sequential, numerical labels. |
static <K,EV> DataSet<Vertex<K,NullValue>> |
vertexSet(DataSet<Edge<K,EV>> edges,
int parallelism)
|
public static DataSet<Vertex<LongValue,NullValue>> vertexSequence(ExecutionEnvironment env, int parallelism, long vertexCount)
Vertices
with sequential, numerical labels.public static <K,EV> DataSet<Vertex<K,NullValue>> vertexSet(DataSet<Edge<K,EV>> edges, int parallelism)
K
- label typeEV
- edge value typeedges
- source DataSet
of Edge
sparallelism
- operator parallelismDataSet
of discovered vertices
Graph.fromDataSet(DataSet, DataSet, ExecutionEnvironment)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.