org.graphnetwork.generate
Class RandomGraphGenerator

java.lang.Object
  extended by org.graphnetwork.generate.RandomGraphGenerator
All Implemented Interfaces:
Constants

public class RandomGraphGenerator
extends java.lang.Object
implements Constants


Field Summary
 
Fields inherited from interface org.graphnetwork.common.Constants
EMPTY, FILESEP, NEWLINE, UDIR
 
Constructor Summary
RandomGraphGenerator(org.jgrapht.graph.ListenableUndirectedWeightedGraph g, int numOfVertices, int numOfEdges, float minWeight, float maxWeight)
          Creates a graph with a random number of edges and vertices
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGraphGenerator

public RandomGraphGenerator(org.jgrapht.graph.ListenableUndirectedWeightedGraph g,
                            int numOfVertices,
                            int numOfEdges,
                            float minWeight,
                            float maxWeight)
Creates a graph with a random number of edges and vertices

Parameters:
numOfVertices - the maximum number of vertices
numOfEdges - the maximum number of edges
minWeight - the minimum weight value
maxWeight - the maximum weight value