edu.stanford.math.plex4.graph.random
public class CircleGraph extends GraphInstanceGenerator
GraphInstanceGenerator.ImplementationType
Modifier and Type | Field and Description |
---|---|
protected int |
numNeighbors |
protected int |
numNodes |
protected int |
numRewired |
protected double |
rewiringProbability |
graphImplementation, implementationType
Constructor and Description |
---|
CircleGraph(int numNodes,
int numNeighbors,
double rewiringProbability) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
correctBettiSequence() |
AbstractUndirectedGraph |
generate() |
protected AbstractUndirectedGraph |
generateWithRewiring(AbstractUndirectedGraph graph) |
java.lang.String |
toString() |
initializeGraph, setImplementationType
protected int numNodes
protected int numNeighbors
protected double rewiringProbability
protected int numRewired
public CircleGraph(int numNodes, int numNeighbors, double rewiringProbability)
public AbstractUndirectedGraph generate()
generate
in class GraphInstanceGenerator
protected AbstractUndirectedGraph generateWithRewiring(AbstractUndirectedGraph graph)
dataDimension
- p
- k
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String correctBettiSequence()
dataDimension
- k
-