|
Jedit 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.bsu.cs.algorithm.Algorithm | +--edu.bsu.cs.algorithm.Fragments | +--edu.bsu.cs.algorithm.PlanarityTesting
An implementation of the Planarity Testing algorithm.
Field Summary |
Fields inherited from class edu.bsu.cs.algorithm.Fragments |
startVertex |
Constructor Summary | |
PlanarityTesting()
|
|
PlanarityTesting(JavaGraph jGraph,
Vector inputs,
Vector animation)
|
Method Summary | |
void |
callOwnConstructor(JavaGraph jGraph,
Vector inputs,
Vector animation)
This method is called by Jedit for any algorithm it executes and must be used in any working algorithm. |
protected boolean |
completelyMarked(JavaGraph myGraph)
Returns true if all the vertices and edges are marked |
protected boolean |
doPlanarity(JavaGraph G)
Core of the algorithm. |
protected boolean |
executePlanarity(JavaGraph G)
Performrs the testing of planarity. |
protected boolean |
existDegreeFive(JavaGraph G)
Checks if exist at least one vertex with degree five or less |
Vector |
getAllTheBlocks(JavaGraph G)
Returns a vector will all the blocks of the graph. |
protected void |
planarityTesting(JavaGraph jGraph,
Vector inputs,
Vector animation)
Called by the constructor to do all of the work |
protected void |
removeUnmark(JavaGraph source,
JavaGraph target)
Removes all the unmarked vertices and edges of auxGraph |
protected void |
showAllRegions()
Shows all the regions of the graph. |
protected void |
showRegion(edu.bsu.cs.algorithm.Region myRegion)
Shows regions in a text format. |
protected void |
thatPlanarityTesting()
|
protected int |
theoremCheck(JavaGraph G)
Find out if the graph satisfies any of the planarity theorems it returns 1 if G is planar, 2 if G is nonplanar and 0 if it is uncertain |
Methods inherited from class edu.bsu.cs.algorithm.Fragments |
amountOfFragments, amountOfMarkedVertices, amountOfUnmarkEdges, closeOutOfCyclePaths, executeFragments, existEdge, findCycle, fragments, getFragmentAt, isThisEdgeMarked, that, unMarkGraphAB |
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 |
Constructor Detail |
public PlanarityTesting()
public PlanarityTesting(JavaGraph jGraph, Vector inputs, Vector animation)
Method Detail |
protected void thatPlanarityTesting()
protected void planarityTesting(JavaGraph jGraph, Vector inputs, Vector animation)
protected boolean existDegreeFive(JavaGraph G)
protected int theoremCheck(JavaGraph G)
protected void removeUnmark(JavaGraph source, JavaGraph target)
protected void showRegion(edu.bsu.cs.algorithm.Region myRegion)
protected boolean completelyMarked(JavaGraph myGraph)
protected void showAllRegions()
protected boolean doPlanarity(JavaGraph G)
protected boolean executePlanarity(JavaGraph G)
public Vector getAllTheBlocks(JavaGraph G)
public void callOwnConstructor(JavaGraph jGraph, Vector inputs, Vector animation)
Algorithm
callOwnConstructor
in class Fragments
jGraph
- the edu.bsu.cs.graph.JavaGraph that the algorithm is performed oninputs
- a Vector of inputs that consists of
animation
- a Vector that is filled with AnimObjects as the algorithm proceeds. It must be instantiated before this method is called.
|
Jedit 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |