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

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

public interface IGraphImporter<T>

Interface for importer classes for the force graph structure.

Rating red

Method Summary
 void applyLayout(FGraph forceGraph)
          Apply the computed layout of a force graph to the original graph.
 FGraph importGraph(T graph)
          Create a force graph from the given graph.
 

Method Detail

importGraph

FGraph importGraph(T graph)
Create a force graph from the given graph.

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

applyLayout

void applyLayout(FGraph forceGraph)
Apply the computed layout of a force graph to the original graph.

Parameters:
forceGraph - the graph for which layout is applied