public class SingletonEdgeGraph extends AbstractGraphGenerator<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue>
Graph
contains one or more isolated two-paths. The in- and out-degree
of every vertex is 1. For n
vertices there are n/2
components.parallelism
Constructor and Description |
---|
SingletonEdgeGraph(org.apache.flink.api.java.ExecutionEnvironment env,
long vertexPairCount)
An undirected
Graph containing 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.
|
setParallelism
public SingletonEdgeGraph(org.apache.flink.api.java.ExecutionEnvironment env, long vertexPairCount)
Graph
containing isolated two-paths.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()
GraphGenerator
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.