edu.stanford.math.plex4.graph.random
public abstract class GraphInstanceGenerator extends java.lang.Object implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
GraphInstanceGenerator.ImplementationType |
Modifier and Type | Field and Description |
---|---|
protected AbstractUndirectedGraph |
graphImplementation |
protected GraphInstanceGenerator.ImplementationType |
implementationType |
Constructor and Description |
---|
GraphInstanceGenerator() |
GraphInstanceGenerator(GraphInstanceGenerator.ImplementationType implementationType) |
Modifier and Type | Method and Description |
---|---|
abstract AbstractUndirectedGraph |
generate() |
protected AbstractUndirectedGraph |
initializeGraph(int numNodes) |
void |
setImplementationType(GraphInstanceGenerator.ImplementationType implementationType) |
protected GraphInstanceGenerator.ImplementationType implementationType
protected AbstractUndirectedGraph graphImplementation
public GraphInstanceGenerator()
public GraphInstanceGenerator(GraphInstanceGenerator.ImplementationType implementationType)
public void setImplementationType(GraphInstanceGenerator.ImplementationType implementationType)
protected AbstractUndirectedGraph initializeGraph(int numNodes)
public abstract AbstractUndirectedGraph generate()