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
-
WheelGraphRandomizer(Dimension)
- Constructor of WheelGraphRandomizer.
-
generateVertices(Graph, int)
- Randomly place the vertices.
WheelGraphRandomizer
public WheelGraphRandomizer(Dimension d)
- Constructor of WheelGraphRandomizer.
- Parameters:
- d - the size of the canvas which graphs be drawn on.
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