org.wilmascope.graphgen.plugin
Class ClusteredGraphGenerator

java.lang.Object
  extended by org.wilmascope.graphgen.GraphGenerator
      extended by org.wilmascope.graphgen.plugin.ClusteredGraphGenerator
All Implemented Interfaces:
org.wilmascope.util.Plugin

public class ClusteredGraphGenerator
extends GraphGenerator

Generates a random clustered graph with a specified number of nodes and edges with random node positions in either 2 or 3 dimensions.

Author:
dwyer

Constructor Summary
ClusteredGraphGenerator()
          creates controls
 
Method Summary
 void generate(GraphControl gc)
          Generates a graph with a given number of clusters of a given size
 javax.swing.JPanel getControls()
           
 java.lang.String getName()
           
 
Methods inherited from class org.wilmascope.graphgen.GraphGenerator
addRandomNode, getEdgeView, getNodeView, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusteredGraphGenerator

public ClusteredGraphGenerator()
creates controls

Method Detail

getName

public java.lang.String getName()

generate

public void generate(GraphControl gc)
Generates a graph with a given number of clusters of a given size

Specified by:
generate in class GraphGenerator
Parameters:
gc - the instance of GraphControl inwhich the graph will be generated
See Also:
GraphGenerator.generate(org.wilmascope.control.GraphControl)

getControls

public javax.swing.JPanel getControls()