public class HypercubeGraph extends GraphGeneratorBase<LongValue,NullValue,NullValue>
Modifier and Type | Field and Description |
---|---|
static int |
MINIMUM_DIMENSIONS |
parallelism
Constructor and Description |
---|
HypercubeGraph(ExecutionEnvironment env,
long dimensions)
An undirected
Graph where edges form an n-dimensional hypercube. |
Modifier and Type | Method and Description |
---|---|
Graph<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public static final int MINIMUM_DIMENSIONS
public HypercubeGraph(ExecutionEnvironment env, long dimensions)
Graph
where edges form an n-dimensional hypercube.
Each vertex in a hypercube connects to one other vertex in each
dimension.env
- the Flink execution environmentdimensions
- number of dimensionspublic Graph<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.