From f19d1e0bceeaff56e0dfc280b6f43e63348a5c9f Mon Sep 17 00:00:00 2001 From: Terry Kwan Date: Tue, 16 Jan 2024 18:48:36 +0100 Subject: [PATCH] Terry: delete the parent linkage in potDotMethod, sollte alles gut funktionieren --- TerryModi/RBTree.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TerryModi/RBTree.java b/TerryModi/RBTree.java index 59004fc..c53356a 100644 --- a/TerryModi/RBTree.java +++ b/TerryModi/RBTree.java @@ -279,10 +279,10 @@ class RBTree> { writer.write("\t\"" + keyString + "\" [fillcolor=" + fillColor + ", fontcolor=" + fontColor + "];\n"); // Print parent link - if (node.parent != null) { + /* if (node.parent != null) { String parentKeyString = node.parent.key.toString().replaceAll("[^a-zA-Z0-9]", "_"); writer.write("\t\"" + parentKeyString + "\" -> \"" + keyString + "\" [style=dotted];\n"); - } + } */ // Print left child if (node.left != null) {