Browse Source

Terry: delete the parent linkage in potDotMethod, sollte alles gut funktionieren

master
Terry Kwan 11 months ago
parent
commit
f19d1e0bce
  1. 4
      TerryModi/RBTree.java

4
TerryModi/RBTree.java

@ -279,10 +279,10 @@ class RBTree<T extends Comparable<T>> {
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) {

Loading…
Cancel
Save