public class SingletonEdgeGraph extends GraphGeneratorBase<LongValue,NullValue,NullValue>
Graph
contains one or more isolated two-paths.Modifier and Type | Field and Description |
---|---|
static int |
MINIMUM_VERTEX_PAIR_COUNT |
parallelism
Constructor and Description |
---|
SingletonEdgeGraph(ExecutionEnvironment env,
long vertexPairCount)
An undirected
Graph containing one or more isolated two-paths. |
Modifier and Type | Method and Description |
---|---|
Graph<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public static final int MINIMUM_VERTEX_PAIR_COUNT
public SingletonEdgeGraph(ExecutionEnvironment env, long vertexPairCount)
Graph
containing one or more isolated two-paths. The in- and out-degree
of every vertex is 1. For n
vertices there are n/2
components.env
- the Flink execution environmentvertexPairCount
- number of pairs of verticespublic Graph<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.