-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Known Implementing Classes:
BarycenterGreedyTwoLayeredBipartiteLayout2D
,CircularLayoutAlgorithm2D
,FRLayoutAlgorithm2D
,IndexedFRLayoutAlgorithm2D
,MedianGreedyTwoLayeredBipartiteLayout2D
,RandomLayoutAlgorithm2D
,RescaleLayoutAlgorithm2D
,TwoLayeredBipartiteLayout2D
public interface LayoutAlgorithm2D<V,E>
A general interface for a layout 2D algorithm. A layout algorithm takes as input a graph and computes point coordinates for each of the graph vertices. Details such as the dimensions of the drawable area, the storage of the vertices' coordinates, etc. are provided using aLayoutModel2D
.- Author:
- Dimitrios Michail
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
layout(Graph<V,E> graph, LayoutModel2D<V> model)
Layout a graph.
-
-
-
Method Detail
-
layout
void layout(Graph<V,E> graph, LayoutModel2D<V> model)
Layout a graph.- Parameters:
graph
- the graphmodel
- the layout model to use
-
-