public class SingletonEdgeGraph extends GraphGeneratorBase<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.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(org.apache.flink.api.java.ExecutionEnvironment env,
long vertexPairCount)
An undirected
Graph containing one or more isolated two-paths. |
| Modifier and Type | Method and Description |
|---|---|
Graph<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue> |
generate()
Generates the configured graph.
|
setParallelismpublic static final int MINIMUM_VERTEX_PAIR_COUNT
public SingletonEdgeGraph(org.apache.flink.api.java.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<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue> generate()
GraphGeneratorCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.