Class TreePrinter
java.lang.Object
solvers.queueingnet.treeAlgorithms.TreePrinter
Class for printing trees to console.
- Author:
- Ben Homer, 2014.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Comparable<?>>
voidPrints the specified node and then its children recursively.
-
Constructor Details
-
TreePrinter
public TreePrinter()
-
-
Method Details
-
printNode
Prints the specified node and then its children recursively.- Parameters:
root- The root node to print from.
-