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