edu.stanford.math.plex4.graph.random
public class ForestFireGraph extends GraphInstanceGenerator
GraphInstanceGenerator.ImplementationType
Modifier and Type | Field and Description |
---|---|
protected double |
backwardBurningProbability |
protected double |
forwardBurningProbability |
protected int |
nodeCount |
protected cern.jet.random.engine.RandomEngine |
randomEngine |
protected cern.jet.random.Uniform |
uniformGenerator |
graphImplementation, implementationType
Constructor and Description |
---|
ForestFireGraph(int n,
double forwardBurningProbability,
double backwardBurningProbability) |
Modifier and Type | Method and Description |
---|---|
AbstractUndirectedGraph |
generate() |
java.lang.String |
toString() |
initializeGraph, setImplementationType
protected double forwardBurningProbability
protected double backwardBurningProbability
protected cern.jet.random.engine.RandomEngine randomEngine
protected cern.jet.random.Uniform uniformGenerator
protected int nodeCount
public ForestFireGraph(int n, double forwardBurningProbability, double backwardBurningProbability)
public AbstractUndirectedGraph generate()
generate
in class GraphInstanceGenerator
public java.lang.String toString()
toString
in class java.lang.Object