JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.graph
Class BrokenGraph

java.lang.Object
  extended bygov.nasa.javaGenes.graph.BrokenGraph
All Implemented Interfaces:
java.lang.Cloneable

public class BrokenGraph
extends java.lang.Object
implements java.lang.Cloneable

Two of these classes are used to represent the sub-graphs produced when ripping a graph in half during crossover. This representation includes the broken edges.


Constructor Summary
BrokenGraph(java.lang.Class c)
           
 
Method Summary
 void add(BrokenEdge b)
           
 java.lang.Object clone()
          make a copy of the brokenEdges vector, make new BrokenEdges, ?old but don't make copies of the edges themselves?.
 BrokenGraph deepCopyBrokenGraph()
          make a copy of the brokenEdges vector, make new BrokenEdges, but don't make copies of the edges themselves.
 ExtendedVector getBrokenEdges()
           
 Graph getGraph()
           
 java.lang.Class getGraphClass()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrokenGraph

public BrokenGraph(java.lang.Class c)
Method Detail

getBrokenEdges

public ExtendedVector getBrokenEdges()

getGraph

public Graph getGraph()

getGraphClass

public java.lang.Class getGraphClass()

deepCopyBrokenGraph

public BrokenGraph deepCopyBrokenGraph()
make a copy of the brokenEdges vector, make new BrokenEdges, but don't make copies of the edges themselves. Do find the equivalent associated vertices in the BrokenEdges


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
make a copy of the brokenEdges vector, make new BrokenEdges, ?old but don't make copies of the edges themselves?. Do find the equivalent associated vertices in the BrokenEdges

Throws:
java.lang.CloneNotSupportedException

add

public void add(BrokenEdge b)

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus