de.cau.cs.kieler.klay.layered.intermediate
Class ReversedEdgeRestorer

java.lang.Object
  extended by de.cau.cs.kieler.core.alg.AbstractAlgorithm
      extended by de.cau.cs.kieler.klay.layered.intermediate.ReversedEdgeRestorer
All Implemented Interfaces:
IAlgorithm, ILayoutProcessor

public class ReversedEdgeRestorer
extends AbstractAlgorithm
implements ILayoutProcessor

Restores the direction of reversed edges. (edges with the property Properties.REVERSED set to true)

All edges are traversed to look for reversed edges. If such edges are found, they are restored, the ports they are connected to being restored as well.

Precondition:
a layered graph.
Postcondition:
Reversed edges are restored to their original direction.
Slots:
After phase 5.
Same-slot dependencies:
None.

Rating red

Constructor Summary
ReversedEdgeRestorer()
           
 
Method Summary
 void process(LayeredGraph layeredGraph)
          Performs the phase's work on the given graph.
 
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm
getMonitor, reset, 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, reset, setProgressMonitor
 

Constructor Detail

ReversedEdgeRestorer

public ReversedEdgeRestorer()
Method Detail

process

public void process(LayeredGraph layeredGraph)
Performs the phase's work on the given graph.

Specified by:
process in interface ILayoutProcessor
Parameters:
layeredGraph - a layered graph