Class RmatElementSupplier
- java.lang.Object
-
- uk.gov.gchq.gaffer.randomelementgeneration.supplier.RmatElementSupplier
-
public class RmatElementSupplier extends Object implements Supplier<Set<uk.gov.gchq.gaffer.data.element.Element>>
This class uses the RMAT random graph generation method (http://www.cs.cmu.edu/~christos/PUBLICATIONS/siam04.pdf) to generate randomElements. The vertices areLongs in the range 0 to a user defined maximum value.Each call to
get()returns aSetofElements. If theincludeEntitiesoption is true, then the set will contain a singleEdgeand anEntityfor each vertex in theEdge. If theincludeEntitiesoption is false, then the set will contain a singleEdge.By default, the probabilities used for the generation of the edges are the same as those specified in the Graph500 challenge, but other probabilities can be specified if desired.
-
-
Constructor Summary
Constructors Constructor Description RmatElementSupplier(double[] probabilities, long maxNodeId, boolean includeEntities)RmatElementSupplier(long maxNodeId, boolean includeEntities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<uk.gov.gchq.gaffer.data.element.Element>get()destination +---+---+ | 0 | 1 | source +---+---+ | 2 | 3 | +---+---+
-