public class StarGraph extends GraphGeneratorBase<LongValue,NullValue,NullValue>
Modifier and Type | Field and Description |
---|---|
static int |
MINIMUM_VERTEX_COUNT |
parallelism
Constructor and Description |
---|
StarGraph(ExecutionEnvironment env,
long vertexCount)
An undirected
Graph with n vertices where the single
central node has degree n-1 , connecting to the other n-1
vertices which have degree 1 . |
Modifier and Type | Method and Description |
---|---|
Graph<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public static final int MINIMUM_VERTEX_COUNT
public StarGraph(ExecutionEnvironment env, long vertexCount)
Graph
with n
vertices where the single
central node has degree n-1
, connecting to the other n-1
vertices which have degree 1
.env
- the Flink execution environmentvertexCount
- number of verticespublic Graph<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.