V
- the graph vertex typeE
- the graph edge type@Deprecated public class RandomGraphGenerator<V,E> extends GnmRandomGraphGenerator<V,E>
However, two instances which use the same constructor parameters will produce two different random graphs (note: as with any random generator, there is always a small possibility that two instances will create the same results).
Constructor and Description |
---|
RandomGraphGenerator(int aNumOfVertexes,
int aNumOfEdges)
Deprecated.
Create a new random graph generator
|
RandomGraphGenerator(int aNumOfVertexes,
int aNumOfEdges,
long seed)
Deprecated.
Create a new random graph generator
|
public RandomGraphGenerator(int aNumOfVertexes, int aNumOfEdges)
aNumOfVertexes
- number of verticesaNumOfEdges
- number of edgespublic RandomGraphGenerator(int aNumOfVertexes, int aNumOfEdges, long seed)
aNumOfVertexes
- number of verticesaNumOfEdges
- number of edgesseed
- seed for the random number generatorCopyright © 2016. All rights reserved.