gov.nasa.javaGenes.graph
Class BrokenGraph
java.lang.Object
gov.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.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BrokenGraph
public BrokenGraph(java.lang.Class c)
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()