Interface LayoutAlgorithm2D<V,​E>

  • Type Parameters:
    V - the graph vertex type
    E - the graph edge type
    All Known Implementing Classes:
    CircularLayoutAlgorithm2D, FRLayoutAlgorithm2D, IndexedFRLayoutAlgorithm2D, RandomLayoutAlgorithm2D

    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 a LayoutModel2D.
    Author:
    Dimitrios Michail
    • Method Detail

      • layout

        void layout​(Graph<V,​E> graph,
                    LayoutModel2D<V> model)
        Layout a graph.
        Parameters:
        graph - the graph
        model - the layout model to use