All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

public class WheelGraphRandomizer
extends GraphRandomizer
The WheelGraphRandomizer class can use to randomize a ellipse-shaped graph.

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

Constructor Index

 o WheelGraphRandomizer(Dimension)
Constructor of WheelGraphRandomizer.

Method Index

 o generateVertices(Graph, int)
Randomly place the vertices.

Constructors

 o WheelGraphRandomizer
 public WheelGraphRandomizer(Dimension d)
Constructor of WheelGraphRandomizer.

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

Methods

 o generateVertices
 protected void generateVertices(Graph g,
                                 int verts)
Randomly place the vertices.

Parameters:
graph - the graph
verts - the number of vertices of the graph.
Overrides:
generateVertices in class GraphRandomizer

All Packages  Class Hierarchy  This Package  Previous  Next  Index