AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
aud.RedBlackTree.RedBlackDecorator Class Reference
+ Inheritance diagram for aud.RedBlackTree.RedBlackDecorator:
+ Collaboration diagram for aud.RedBlackTree.RedBlackDecorator:

Public Member Functions

String getNodeDecoration (aud.util.GraphvizDecorable object)
 

Detailed Description

Definition at line 171 of file RedBlackTree.java.

Member Function Documentation

◆ getNodeDecoration()

String aud.RedBlackTree.RedBlackDecorator.getNodeDecoration ( aud.util.GraphvizDecorable  object)

Definition at line 174 of file RedBlackTree.java.

174 {
175 String style=super.getNodeDecoration(object);
176 if (style!=null || object==head_)
177 return style;
178 return ((RBNode) object).isRed() ?
179 "style=filled,fillcolor=lightcoral,penwidth=1" :
180 "style=filled,fillcolor=lightblue,penwidth=3";
181 }
Node head_

References head_.


The documentation for this class was generated from the following file: