public class PseudoRandomIntNullLocalEdgesHelper extends Object
PseudoRandomLocalEdgesHelper
, but for graphs where vertex ids
are integers.Constructor and Description |
---|
PseudoRandomIntNullLocalEdgesHelper(int numVertices,
ImmutableClassesGiraphConfiguration conf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
generateDestVertex(int 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 PseudoRandomIntNullLocalEdgesHelper(int numVertices, ImmutableClassesGiraphConfiguration conf)
numVertices
- Total number of vertices.conf
- Configuration.public int generateDestVertex(int sourceVertexId, Random rand)
sourceVertexId
- Source vertex id.rand
- Pseudo-random generator.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.