annas.graph.drawing
Interface Placer<N,A extends ArcInterface<N>>

Type Parameters:
N - Node type
A - Arc type
All Known Implementing Classes:
ForceBasedPlacer, LinePlacer

public interface Placer<N,A extends ArcInterface<N>>

Interface for the layout of a graph for visualisation

Author:
Sam Wilson

Method Summary
 java.util.Map<N,int[]> place(GraphInterface<N,A> graph, int sizeX, int sizeY)
          Takes a graph and runs an Algorithm to determine the location of each node in the Graph.
 

Method Detail

place

java.util.Map<N,int[]> place(GraphInterface<N,A> graph,
                             int sizeX,
                             int sizeY)
Takes a graph and runs an Algorithm to determine the location of each node in the Graph.

Parameters:
graph - Graph to draw.
Returns:
Map mapping nodes to maps of string Object pairs. Containing data used by the drawing routine.