public class SingletonEdgeGraph extends AbstractGraphGenerator<LongValue,NullValue,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(ExecutionEnvironment env,
long vertexPairCount)
An undirected
Graph containing isolated two-paths. |
Modifier and Type | Method and Description |
---|---|
Graph<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public SingletonEdgeGraph(ExecutionEnvironment env, long vertexPairCount)
Graph
containing isolated two-paths.env
- the Flink execution environmentvertexPairCount
- number of pairs of verticespublic Graph<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.