public class PseudoRandomLocalEdgesHelper extends Object
Constructor and Description |
---|
PseudoRandomLocalEdgesHelper(long numVertices,
float minLocalEdgesRatio,
ImmutableClassesGiraphConfiguration conf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
generateDestVertex(long sourceVertexId,
Random rand)
Generate a destination vertex id for the given source vertex,
using the desired configuration for edge locality and the provided
pseudo-random generator.
|
public PseudoRandomLocalEdgesHelper(long numVertices, float minLocalEdgesRatio, ImmutableClassesGiraphConfiguration conf)
numVertices
- Total number of vertices.minLocalEdgesRatio
- Minimum ratio of local edges.conf
- Configuration.public long generateDestVertex(long sourceVertexId, Random rand)
sourceVertexId
- Source vertex id.rand
- Pseudo-random generator.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.