K - graph label typeVV - vertex value typeEV - edge value typepublic class VertexDegrees<K,VV,EV> extends GraphAlgorithmWrappingDataSet<K,VV,EV,Vertex<K,VertexDegrees.Degrees>>
| Modifier and Type | Class and Description |
|---|---|
static class |
VertexDegrees.Degrees
Wraps the vertex degree, out-degree, and in-degree.
|
parallelism| Constructor and Description |
|---|
VertexDegrees() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canMergeConfigurationWith(GraphAlgorithmWrappingBase other)
First test whether the algorithm configurations can be merged before the
call to
GraphAlgorithmWrappingBase.mergeConfiguration(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase). |
protected void |
mergeConfiguration(GraphAlgorithmWrappingBase other)
Merge the other configuration into this algorithm's after the call to
GraphAlgorithmWrappingBase.canMergeConfigurationWith(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase) has checked that the configurations
can be merged. |
org.apache.flink.api.java.DataSet<Vertex<K,VertexDegrees.Degrees>> |
runInternal(Graph<K,VV,EV> input)
The implementation of the algorithm, renamed from
GraphAlgorithm.run(Graph). |
VertexDegrees<K,VV,EV> |
setIncludeZeroDegreeVertices(boolean includeZeroDegreeVertices)
By default only the edge set is processed for the computation of degree.
|
equals, hashCode, rungetAlgorithmName, setParallelismpublic VertexDegrees<K,VV,EV> setIncludeZeroDegreeVertices(boolean includeZeroDegreeVertices)
includeZeroDegreeVertices - whether to output vertices with an
in-degree of zeroprotected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other)
GraphAlgorithmWrappingBaseGraphAlgorithmWrappingBase.mergeConfiguration(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase).canMergeConfigurationWith in class GraphAlgorithmWrappingBase<K,VV,EV,org.apache.flink.api.java.DataSet<Vertex<K,VertexDegrees.Degrees>>>other - the algorithm with which to compare configurationGraphAlgorithmWrappingBase.mergeConfiguration(GraphAlgorithmWrappingBase)protected void mergeConfiguration(GraphAlgorithmWrappingBase other)
GraphAlgorithmWrappingBaseGraphAlgorithmWrappingBase.canMergeConfigurationWith(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase) has checked that the configurations
can be merged.mergeConfiguration in class GraphAlgorithmWrappingBase<K,VV,EV,org.apache.flink.api.java.DataSet<Vertex<K,VertexDegrees.Degrees>>>other - the algorithm from which to merge configurationGraphAlgorithmWrappingBase.canMergeConfigurationWith(GraphAlgorithmWrappingBase)public org.apache.flink.api.java.DataSet<Vertex<K,VertexDegrees.Degrees>> runInternal(Graph<K,VV,EV> input) throws Exception
GraphAlgorithmWrappingDataSetGraphAlgorithm.run(Graph).runInternal in class GraphAlgorithmWrappingDataSet<K,VV,EV,Vertex<K,VertexDegrees.Degrees>>input - the input graphExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.