nl.uu.cs.treewidth.input
Class RandomGraphGenerator

java.lang.Object
  extended by nl.uu.cs.treewidth.input.RandomGraphGenerator
All Implemented Interfaces:
GraphInput

public class RandomGraphGenerator
extends java.lang.Object
implements GraphInput


Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.uu.cs.treewidth.input.GraphInput
GraphInput.InputData
 
Constructor Summary
RandomGraphGenerator(int edgeCount, double cycleChance)
           
 
Method Summary
 NGraph<GraphInput.InputData> get()
          Return a graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGraphGenerator

public RandomGraphGenerator(int edgeCount,
                            double cycleChance)
Method Detail

get

public NGraph<GraphInput.InputData> get()
                                 throws InputException
Description copied from interface: GraphInput
Return a graph. Implementing classes will have additional interface to give meaning to this call.

Specified by:
get in interface GraphInput
Returns:
A graph; entirely up to implementing classes what to return.
Throws:
InputException