All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tw.edu.ncnu.im.cnclab.JGAP.UnitWeightedRandomizer

java.lang.Object
   |
   +----tw.edu.ncnu.im.cnclab.JGAP.GraphRandomizer
           |
           +----tw.edu.ncnu.im.cnclab.JGAP.WheelGraphRandomizer
                   |
                   +----tw.edu.ncnu.im.cnclab.JGAP.UnitWeightedRandomizer

public class UnitWeightedRandomizer
extends WheelGraphRandomizer
The UnitWeightedGraphRandomizer class can use to randomize a unit-weighted graph.

Version:
0.4 Jul 8, 1999
Author:
Ding-Yi Chen
See Also:
Graph

Constructor Index

 o UnitWeightedRandomizer(Dimension)
Constructor of UnitWeightedGraphRandomizer.

Method Index

 o generateEdges(Graph, int, double, double, double)
Randomly generate the edge.

Constructors

 o UnitWeightedRandomizer
 public UnitWeightedRandomizer(Dimension d)
Constructor of UnitWeightedGraphRandomizer.

Parameters:
d - the size of the canvas which graphs be drawn on.

Methods

 o generateEdges
 protected void generateEdges(Graph g,
                              int verts,
                              double density,
                              double lowerBound,
                              double upperBound)
Randomly generate the edge.

Parameters:
graph - the graph
verts - the number of vertices of the graph.
density - the probability of edge appear between vertices.
lowerBound - the lower bound of edge weight.
upperBound - the upper bound of edge weight.
Overrides:
generateEdges in class GraphRandomizer

All Packages  Class Hierarchy  This Package  Previous  Next  Index