This commit is contained in:
Asecave 2020-11-22 16:26:43 +01:00
parent 4d13bed110
commit a78605baf1
3 changed files with 10 additions and 11 deletions

Binary file not shown.

View File

@ -64,20 +64,19 @@ public class MorseTree {
public void printHirarchical(BinaryTree<DecisionNode> pRoot, int xOff) {
if (pRoot.getContent() == null) {
xOff--;
return;
}
printOffset(xOff);
System.out.println(pRoot.getContent());
if (pRoot.getLeftTree() != null) {
printOffset(xOff);
System.out.println(pRoot.getContent());
xOff++;
printHirarchical(pRoot.getLeftTree(), xOff);
xOff--;
}
if (pRoot.getRightTree() != null) {
printOffset(xOff);
System.out.println(pRoot.getContent());
xOff++;
printHirarchical(pRoot.getRightTree(), xOff);
xOff--;
}
}

View File

@ -5,17 +5,17 @@ dependency1.type=UsesDependency
dependency2.from=DecisionNode
dependency2.to=Dataset
dependency2.type=UsesDependency
dependency3.from=MorseTree
dependency3.to=BinaryTree
dependency3.from=Decision
dependency3.to=Dataset
dependency3.type=UsesDependency
dependency4.from=MorseTree
dependency4.to=DecisionNode
dependency4.to=BinaryTree
dependency4.type=UsesDependency
dependency5.from=MorseTree
dependency5.to=Decision
dependency5.to=DecisionNode
dependency5.type=UsesDependency
dependency6.from=Decision
dependency6.to=Dataset
dependency6.from=MorseTree
dependency6.to=Decision
dependency6.type=UsesDependency
editor.fx.0.height=1026
editor.fx.0.width=1696