public class EchoGraph extends GraphGeneratorBase<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue,org.apache.flink.types.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(org.apache.flink.api.java.ExecutionEnvironment env,
long vertexCount,
long vertexDegree)
An undirected
Graph whose vertices have the same degree. |
| 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_COUNT
public static final int MINIMUM_VERTEX_DEGREE
public EchoGraph(org.apache.flink.api.java.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<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.