de.cau.cs.kieler.klay.layered
Interface IGraphImporter<T>

Type Parameters:
T - the type of graph that this importer can transform into a layered graph.
All Known Implementing Classes:
AbstractGraphImporter, CompoundKGraphImporter, KGraphImporter

public interface IGraphImporter<T>

Interface for importer classes for the layered graph structure. Graph importers should usually subclass AbstractGraphImporter instead of implementing this interface directly.

Graph importers are encouraged to set the Properties#GRAPH_PROPERTIES property on imported graphs.

Rating red

Method Summary
 void applyLayout(LayeredGraph layeredGraph)
          Apply the computed layout of the given layered graph to the original input graph.
 LayeredGraph importGraph(T graph)
          Create a layered graph from the given graph.
 

Method Detail

importGraph

LayeredGraph importGraph(T graph)
Create a layered graph from the given graph.

Parameters:
graph - the graph to turn into a layered graph.
Returns:
a layered graph, or null if the input was not recognized

applyLayout

void applyLayout(LayeredGraph layeredGraph)
Apply the computed layout of the given layered graph to the original input graph.
Precondition:
the graph has all its dummy nodes and edges removed; edges that were reversed during layout have been restored to their original orientation
Postcondition:
none

Parameters:
layeredGraph - a graph for which layout is applied