public class SimpleRandomGenerator extends java.lang.Object implements GraphGenerator
| Constructor and Description |
|---|
SimpleRandomGenerator(int numVertices,
int numEdges)
Constructs the generator
|
| Modifier and Type | Method and Description |
|---|---|
ArchetypeGraph |
generateGraph()
Generated the graph by creating |V| vertics and then picking |E| random
edges
|
long |
getNumEdges() |
long |
getNumVertices() |
protected Vertex |
newVertex() |
void |
setSeed(long seed) |
public SimpleRandomGenerator(int numVertices,
int numEdges)
numVertices - number of vertices the graph should havenumEdges - number of edges the graph should haveprotected Vertex newVertex()
public void setSeed(long seed)
public ArchetypeGraph generateGraph()
generateGraph in interface GraphGeneratorpublic long getNumEdges()
public long getNumVertices()