Module org.maxicp

Class Tree

java.lang.Object
org.maxicp.util.algo.Tree

public class Tree extends Object
Tree structure for visualizing search trees (e.g., backtracking algorithms). Implements this tree layout algorithm: https://www.microsoft.com/en-us/research/wp-content/uploads/1996/01/drawingtrees.pdf
  • Constructor Details

    • Tree

      public Tree(int rootId)
  • Method Details

    • createNode

      public void createNode(int id, int parentId, Tree.NodeType type)
    • createNode

      public void createNode(int id, int parentId, Tree.NodeType type, String nodeLabel, String edgeLabel)
    • root

      public Tree.Node root()
    • main

      public static void main(String[] args)