de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.alg
Class InteractiveCycleRemover

java.lang.Object
  extended by de.cau.cs.kieler.core.alg.AbstractAlgorithm
      extended by de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.alg.AbstractCycleRemover
          extended by de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.alg.InteractiveCycleRemover
All Implemented Interfaces:
IAlgorithm, ICycleRemover

public class InteractiveCycleRemover
extends AbstractCycleRemover

A cycle remover that allows interactive layout by considering the node positions given by the user.

Rating red

Field Summary
 
Fields inherited from interface de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.alg.ICycleRemover
REVERSED
 
Constructor Summary
InteractiveCycleRemover()
           
 
Method Summary
 void removeCycles(KSlimGraph graph)
          Remove cycles in a given graph.
 void setVertical(boolean thevertical)
          Activate vertical layout.
 
Methods inherited from class de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.alg.AbstractCycleRemover
getReversedEdges, reset, restoreGraph, reverseEdges, setReversedEdges
 
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm
getMonitor, reset, setProgressMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cau.cs.kieler.core.alg.IAlgorithm
reset, setProgressMonitor
 

Constructor Detail

InteractiveCycleRemover

public InteractiveCycleRemover()
Method Detail

removeCycles

public void removeCycles(KSlimGraph graph)
Remove cycles in a given graph. Loops on a single node are ignored and have to be processed properly in later steps. Each edge is assigned a rank with value REVERSED if and only if the edge was reversed for cycle removal.

Parameters:
graph - graph to be processed

setVertical

public void setVertical(boolean thevertical)
Activate vertical layout.

Parameters:
thevertical - if true, vertical layout is done, else horizontal layout is done