public class EchoGraph extends GraphGeneratorBase<LongValue,NullValue,NullValue>
CirculantGraph
with n
vertices defined by the width of a
single range of offsets centered at n/2
. A vertex is connected to
'far' vertices, which connect to 'near' vertices, which connect to 'far'
vertices, ....
Every Vertex
in the EchoGraph
has the same degree.
and vertices as far as possible are chose to be linked.
EchoGraph
is a specific case of CirculantGraph
.
Modifier and Type | Field and Description |
---|---|
static int |
MINIMUM_VERTEX_COUNT |
static int |
MINIMUM_VERTEX_DEGREE |
parallelism
Constructor and Description |
---|
EchoGraph(ExecutionEnvironment env,
long vertexCount,
long vertexDegree)
An undirected
Graph whose vertices have the same degree. |
Modifier and Type | Method and Description |
---|---|
Graph<LongValue,NullValue,NullValue> |
generate()
Generates the configured graph.
|
setParallelism
public static final int MINIMUM_VERTEX_COUNT
public static final int MINIMUM_VERTEX_DEGREE
public EchoGraph(ExecutionEnvironment env, long vertexCount, long vertexDegree)
Graph
whose vertices have the same degree.env
- the Flink execution environmentvertexCount
- number of verticesvertexDegree
- degree of verticespublic Graph<LongValue,NullValue,NullValue> generate()
GraphGenerator
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.