edu.bsu.cs.algorithm
Class Hypercube
java.lang.Object
|
+--edu.bsu.cs.algorithm.Algorithm
|
+--edu.bsu.cs.algorithm.Hypercube
- public class Hypercube
- extends Algorithm
Constructs a Hypercube graph of 2n vertices, 2n-1n edges, 2n-3n(n-1) squares, and n(n-1)(n-2)2n-4/3 cubes. A Hypercube is an Algorithm of type AUTOMATICALGORITHM.
Reference:
Hypercube -- from MathWorld. http://mathworld.wolfram.com/Hypercube.html
- Since:
- 17 May 2000
- Version:
- 24 Sep 2002
- Author:
- Adrian Heinz
, Jay Bagga
, Elizabeth VandenBerg
Constructor Summary |
Hypercube(int N)
Constructs a Hypercube graph with n = N and type AUTOMATICALGORITHM. |
Methods inherited from class edu.bsu.cs.algorithm.Algorithm |
getCode, getDescription, getName, getType, setCode, setDescription, setFromResources, setName, setType, succeeded, succeeded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hypercube
public Hypercube(int N)
- Constructs a Hypercube graph with n = N and type AUTOMATICALGORITHM. Does not display the graph.
- Parameters:
N
- The n value of the Hypercube.
callOwnConstructor
public void callOwnConstructor(JavaGraph graph,
Vector inputs,
Vector animation)
- Constructs a Hypercube graph and displays it in the current panel.
- Specified by:
callOwnConstructor
in class Algorithm
- Parameters:
graph
- inputs
- animation
-