Main { (@ static public void main(String args[]) throws Exception { Tree tree = Tree.parse(System.in); System.out.println(); System.out.println(); System.out.println(); // System.out.println(" show all trees "); // tree.print_allTrees(); // DJ part ClassGraph cg = Main.buildClassGraph(); System.out.println(); TraversalGraph leftTrees = new TraversalGraph( "from Tree bypassing -> *,right,* to Tree",cg); System.out.println(" show left trees "); tree.showTreesDJ(leftTrees); System.out.println(" DONE: show left trees "); TraversalGraph allTrees = new TraversalGraph( "from Tree to Tree",cg); System.out.println(" show all trees "); tree.showTreesDJ(allTrees); System.out.println(" DONE: show all trees "); TraversalGraph allLabels = new TraversalGraph("from Tree to Label",cg); Integer res = tree.sum_labelsDJ(allLabels); System.out.println(" DJ output = " + res); } @) }