de.cau.cs.kieler.graphs.util
Class RandomGraphGenerator

java.lang.Object
  extended by de.cau.cs.kieler.graphs.util.RandomGraphGenerator

public class RandomGraphGenerator
extends Object

A generator class for graph models.

Rating red

Constructor Summary
RandomGraphGenerator()
           
 
Method Summary
 Node createModel(int nodes, int minConnections, int maxConnections, float thehierarchyProb, float hyperNodeProb, boolean directed, boolean usePorts)
          Creates a random graph model according to given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGraphGenerator

public RandomGraphGenerator()
Method Detail

createModel

public Node createModel(int nodes,
                        int minConnections,
                        int maxConnections,
                        float thehierarchyProb,
                        float hyperNodeProb,
                        boolean directed,
                        boolean usePorts)
Creates a random graph model according to given parameters.

Parameters:
nodes - number of nodes in the model
minConnections - minimal number of outgoing connections per node
maxConnections - maximal number of outgoing connections per node
thehierarchyProb - probability of new hierarchy level
Returns:
a random graph model