de.uni_leipzig.cvk.data
Class GraphGenerator

java.lang.Object
  extended by de.uni_leipzig.cvk.data.GraphGenerator

public class GraphGenerator
extends java.lang.Object

Generates graphs.

 

Constructor Summary
GraphGenerator()
           
 
Method Summary
static prefuse.data.Graph clique(int n, int k)
          Generates a (n,k)-partite-clique.
static prefuse.data.Graph erdosRenyi(int n, double p, long randSeed)
          Generates a graph with the Erdos-Renyi binomial model.
static prefuse.data.Graph topped()
          Generates a topped tetrahedron.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphGenerator

public GraphGenerator()
Method Detail

clique

public static prefuse.data.Graph clique(int n,
                                        int k)
Generates a (n,k)-partite-clique.

Parameters:
n - #nodes
k - #cliques

erdosRenyi

public static prefuse.data.Graph erdosRenyi(int n,
                                            double p,
                                            long randSeed)
Generates a graph with the Erdos-Renyi binomial model.

Parameters:
n - #nodes
p - probability
randSeed - use a seed for Random or don't with argument -1 for real random Graph with a random seed.

topped

public static prefuse.data.Graph topped()
Generates a topped tetrahedron.