public class CycleGraph extends GraphGeneratorBase<LongValue,NullValue,NullValue>
Modifier and Type | Field and Description |
---|---|
static int |
MINIMUM_VERTEX_COUNT |
parallelism
Constructor and Description |
---|
CycleGraph(ExecutionEnvironment env,
long vertexCount)
An undirected
Graph with n vertices where each vertex
vi is connected to adjacent vertices v(i+1)%n and
v(i-1)%n. |
Modifier and Type | Method and Description |
---|---|
Graph<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public static final int MINIMUM_VERTEX_COUNT
public CycleGraph(ExecutionEnvironment env, long vertexCount)
Graph
with n
vertices where each vertex
vi is connected to adjacent vertices v(i+1)%n and
v(i-1)%n.env
- the Flink execution environmentvertexCount
- number of verticespublic Graph<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.