Plexus v0.13.1

com.phoenixst.plexus.examples
Class Prism

java.lang.Object
  extended by com.phoenixst.plexus.AbstractGraph
      extended by com.phoenixst.plexus.operations.Product
          extended by com.phoenixst.plexus.examples.Prism
All Implemented Interfaces:
Graph, Serializable

public class Prism
extends Product

An m x n prism, where m is the size of the cycle and n is the size of the path. This graph is pretty much a cylinder, but takes its name from the fact that if the cycle is of size 3, then it looks like a prism.

Since:
1.0
Version:
$Revision: 1.10 $
Author:
Ray A. Conner
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.phoenixst.plexus.Graph
Graph.Edge
 
Constructor Summary
Prism(int m, int n)
          Creates a new Prism.
 
Method Summary
 String toString()
           
 
Methods inherited from class com.phoenixst.plexus.operations.Product
containsEdge, containsNode, degree, edges, getLeftOperand, getRightOperand, nodes, removeEdge, removeNode, traverser
 
Methods inherited from class com.phoenixst.plexus.AbstractGraph
addEdge, addNode, adjacentNodes, degree, edges, getAdjacentNode, getEdge, getIncidentEdge, getNode, incidentEdges, nodes, traverser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Prism

public Prism(int m,
             int n)
Creates a new Prism.

Method Detail

toString

public String toString()
Overrides:
toString in class Product

Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.