public class GridGraph extends GraphGeneratorBase<LongValue,NullValue,NullValue>
parallelism
Constructor and Description |
---|
GridGraph(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<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public GridGraph(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<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.