I would like to create a UML diagram of a family of red/black trees.
Essentially the diagram will consist of a number of circles or ovals with some value inside. The color of the circle is either red or black. Each node May have arrows that either points down into the left, down into the right, or straight down to point to the next node. The orientation must not be arbitrary but must be able to be specified by the user.
Here’s an example that I made some time ago (forgot how and I can’t figure out how to see the code behind this diagram)
https://www.planttext.com/api/plantuml/png/dPB12u8m6CNl_XKVktVe78OL4WHHcDGXGgpDDfpxOav4el-zQGPgqC6Tjj_R6zzxpCjDh4sHIOUAkuuV7DRmTC2kVR3R-AiGpecGyeOIjKiqemHoKqdcaXhNnmILQUMI2yF8PTRujqWBoQQZ_GVEc1bZRzmX5_a9TNf5JCU-GG940xuokY8mcNyRwRLZyN6v6A9sMsQDO2_Ki2saLux5dvn3sfs_MuULgD03eeJy3Vs7HtQYw9lc1Ox75BLVu0q0
The issue with this (besides not having the code that generated it) is I was forced to add the “nil” node to ensure the other nodes at that level pointed the correct direction. I would want to be able to specify the direction for each edge of the graph.
Any help is appreciated