org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase Java Examples

The following examples show how to use org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LocalClusteringCoefficient.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	LocalClusteringCoefficient rhs = (LocalClusteringCoefficient) other;

	includeZeroDegreeVertices.mergeWith(rhs.includeZeroDegreeVertices);
}
 
Example #2
Source File: LocalClusteringCoefficient.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	LocalClusteringCoefficient rhs = (LocalClusteringCoefficient) other;

	includeZeroDegreeVertices.mergeWith(rhs.includeZeroDegreeVertices);
}
 
Example #3
Source File: EdgeDegreePair.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	EdgeDegreePair rhs = (EdgeDegreePair) other;

	reduceOnTargetId.mergeWith(rhs.reduceOnTargetId);
}
 
Example #4
Source File: JaccardIndex.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	JaccardIndex rhs = (JaccardIndex) other;

	return unboundedScores == rhs.unboundedScores &&
		minimumScoreNumerator == rhs.minimumScoreNumerator &&
		minimumScoreDenominator == rhs.minimumScoreDenominator &&
		maximumScoreNumerator == rhs.maximumScoreNumerator &&
		maximumScoreDenominator == rhs.maximumScoreDenominator &&
		mirrorResults == rhs.mirrorResults;
}
 
Example #5
Source File: JaccardIndex.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	JaccardIndex rhs = (JaccardIndex) other;

	groupSize = Math.max(groupSize, rhs.groupSize);
}
 
Example #6
Source File: PageRank.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	PageRank rhs = (PageRank) other;

	maxIterations = Math.max(maxIterations, rhs.maxIterations);
	convergenceThreshold = Math.min(convergenceThreshold, rhs.convergenceThreshold);
}
 
Example #7
Source File: MaximumDegree.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	MaximumDegree rhs = (MaximumDegree) other;

	reduceOnTargetId.mergeWith(rhs.reduceOnTargetId);
	broadcastHighDegreeVertices.mergeWith(rhs.broadcastHighDegreeVertices);
}
 
Example #8
Source File: MaximumDegree.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	MaximumDegree rhs = (MaximumDegree) other;

	return maximumDegree == rhs.maximumDegree;
}
 
Example #9
Source File: VertexDegree.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	VertexDegree rhs = (VertexDegree) other;

	includeZeroDegreeVertices.mergeWith(rhs.includeZeroDegreeVertices);
	reduceOnTargetId.mergeWith(rhs.reduceOnTargetId);
}
 
Example #10
Source File: VertexDegree.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	VertexDegree rhs = (VertexDegree) other;

	return !includeZeroDegreeVertices.conflictsWith(rhs.includeZeroDegreeVertices);
}
 
Example #11
Source File: HITS.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	HITS rhs = (HITS) other;

	maxIterations = Math.max(maxIterations, rhs.maxIterations);
	convergenceThreshold = Math.min(convergenceThreshold, rhs.convergenceThreshold);
}
 
Example #12
Source File: TranslateVertexValues.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	TranslateVertexValues rhs = (TranslateVertexValues) other;

	return translator == rhs.translator;
}
 
Example #13
Source File: TriangleListingBase.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	TriangleListingBase rhs = (TriangleListingBase) other;

	return permuteResults == rhs.permuteResults;
}
 
Example #14
Source File: TriangleListingBase.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected final void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	TriangleListingBase rhs = (TriangleListingBase) other;

	sortTriangleVertices.mergeWith(rhs.sortTriangleVertices);
}
 
Example #15
Source File: TriangleListingBase.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	TriangleListingBase rhs = (TriangleListingBase) other;

	return permuteResults == rhs.permuteResults;
}
 
Example #16
Source File: TranslateGraphIds.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	TranslateGraphIds rhs = (TranslateGraphIds) other;

	return translator == rhs.translator;
}
 
Example #17
Source File: LocalClusteringCoefficient.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	LocalClusteringCoefficient rhs = (LocalClusteringCoefficient) other;

	return !includeZeroDegreeVertices.conflictsWith(rhs.includeZeroDegreeVertices);
}
 
Example #18
Source File: LocalClusteringCoefficient.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	LocalClusteringCoefficient rhs = (LocalClusteringCoefficient) other;

	includeZeroDegreeVertices.mergeWith(rhs.includeZeroDegreeVertices);
}
 
Example #19
Source File: LocalClusteringCoefficient.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	LocalClusteringCoefficient rhs = (LocalClusteringCoefficient) other;

	return !includeZeroDegreeVertices.conflictsWith(rhs.includeZeroDegreeVertices);
}
 
Example #20
Source File: AdamicAdar.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	AdamicAdar rhs = (AdamicAdar) other;

	return minimumRatio == rhs.minimumRatio && minimumScore == rhs.minimumScore;
}
 
Example #21
Source File: JaccardIndex.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	JaccardIndex rhs = (JaccardIndex) other;

	groupSize = Math.max(groupSize, rhs.groupSize);
}
 
Example #22
Source File: JaccardIndex.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	JaccardIndex rhs = (JaccardIndex) other;

	return unboundedScores == rhs.unboundedScores &&
		minimumScoreNumerator == rhs.minimumScoreNumerator &&
		minimumScoreDenominator == rhs.minimumScoreDenominator &&
		maximumScoreNumerator == rhs.maximumScoreNumerator &&
		maximumScoreDenominator == rhs.maximumScoreDenominator &&
		mirrorResults == rhs.mirrorResults;
}
 
Example #23
Source File: PageRank.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	PageRank rhs = (PageRank) other;

	maxIterations = Math.max(maxIterations, rhs.maxIterations);
	convergenceThreshold = Math.min(convergenceThreshold, rhs.convergenceThreshold);
}
 
Example #24
Source File: PageRank.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	PageRank rhs = (PageRank) other;

	return dampingFactor == rhs.dampingFactor &&
		includeZeroDegreeVertices == rhs.includeZeroDegreeVertices;
}
 
Example #25
Source File: HITS.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	HITS rhs = (HITS) other;

	maxIterations = Math.max(maxIterations, rhs.maxIterations);
	convergenceThreshold = Math.min(convergenceThreshold, rhs.convergenceThreshold);
}
 
Example #26
Source File: MaximumDegree.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	MaximumDegree rhs = (MaximumDegree) other;

	reduceOnTargetId.mergeWith(rhs.reduceOnTargetId);
	broadcastHighDegreeVertices.mergeWith(rhs.broadcastHighDegreeVertices);
}
 
Example #27
Source File: AdamicAdar.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	AdamicAdar rhs = (AdamicAdar) other;

	return minimumRatio == rhs.minimumRatio && minimumScore == rhs.minimumScore;
}
 
Example #28
Source File: VertexDegree.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	VertexDegree rhs = (VertexDegree) other;

	includeZeroDegreeVertices.mergeWith(rhs.includeZeroDegreeVertices);
	reduceOnTargetId.mergeWith(rhs.reduceOnTargetId);
}
 
Example #29
Source File: VertexDegree.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean canMergeConfigurationWith(GraphAlgorithmWrappingBase other) {
	if (!super.canMergeConfigurationWith(other)) {
		return false;
	}

	VertexDegree rhs = (VertexDegree) other;

	return !includeZeroDegreeVertices.conflictsWith(rhs.includeZeroDegreeVertices);
}
 
Example #30
Source File: EdgeDegreePair.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected void mergeConfiguration(GraphAlgorithmWrappingBase other) {
	super.mergeConfiguration(other);

	EdgeDegreePair rhs = (EdgeDegreePair) other;

	reduceOnTargetId.mergeWith(rhs.reduceOnTargetId);
}