public class GridGraph extends GraphGeneratorBase<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue>
parallelism| Constructor and Description |
|---|
GridGraph(org.apache.flink.api.java.ExecutionEnvironment env)
An undirected
Graph connecting vertices in a regular tiling in
one or more dimensions and where the endpoints are optionally connected. |
| Modifier and Type | Method and Description |
|---|---|
GridGraph |
addDimension(long size,
boolean wrapEndpoints)
Required configuration for each dimension of the graph.
|
Graph<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue> |
generate()
Generates the configured graph.
|
setParallelismpublic GridGraph(org.apache.flink.api.java.ExecutionEnvironment env)
Graph connecting vertices in a regular tiling in
one or more dimensions and where the endpoints are optionally connected.env - the Flink execution environmentpublic GridGraph addDimension(long size, boolean wrapEndpoints)
size - number of vertices; dimensions of size 1 are prohibited due to having no effect
on the generated graphwrapEndpoints - whether to connect first and last vertices; this has no effect on
dimensions of size 2public Graph<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue> generate()
GraphGeneratorCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.