public class PathGraph extends AbstractGraphGenerator<LongValue,NullValue,NullValue>
parallelism
Constructor and Description |
---|
PathGraph(ExecutionEnvironment env,
long vertexCount)
An undirected
Graph where all edges form a single path. |
Modifier and Type | Method and Description |
---|---|
Graph<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public PathGraph(ExecutionEnvironment env, long vertexCount)
Graph
where all edges form a single path.env
- the Flink execution environmentvertexCount
- number of verticespublic Graph<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.