Module imp2d

Class HierarchyLayout.HAlgorithm

java.lang.Object
de.grogra.imp2d.layout.Layout.Algorithm
de.grogra.imp2d.layout.HierarchyLayout.HAlgorithm
Enclosing class:
HierarchyLayout

public class HierarchyLayout.HAlgorithm extends Layout.Algorithm
  • Constructor Details

    • HAlgorithm

      public HAlgorithm()
  • Method Details

    • layout

      protected void layout(Node nodes)
      Description copied from class: Layout.Algorithm
      This method has to be implemented to perform the layout.
      Specified by:
      layout in class Layout.Algorithm
      Parameters:
      nodes - the first node of the linked list of all nodes
      See Also:
    • disassociateNodes

      public void disassociateNodes()
      Dividing the nodes of the graph into connectedNodes (= nodes that have edges to other nodes) and unconnectedNodes (= nodes that don't have edges to other nodes of the graph)