Commit graph

13 commits

Author SHA1 Message Date
2bc43652d0
feat: color edges in red-black tree
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-21 13:02:05 +02:00
991388604f
fix: improve deletion
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-16 18:44:24 +02:00
43ade1120b
fix: Ensure all affected nodes are being highlighted
Fixes #9

Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-16 18:36:31 +02:00
7a896e0fa7
fix: newlines in toDot
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-15 22:46:55 +02:00
dafe85c6d3
fix: move queue to utils
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-15 22:46:10 +02:00
01f00eb330
feat: highlight currently affected node
Fixes #7

Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-15 22:28:42 +02:00
c7c27300f6
feat: Add comments to currently run operations
Fixes #8

Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-15 17:53:12 +02:00
e327524d91
fix(base): fix typo
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 16:54:51 +02:00
966e1dd935
fix: transplant with successor as a replace
When transplanting node with a successor, instead of redoing the links,
just swap the value and delete „abused“ successor, which allows more
straightforward rebalance.

Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-06 09:40:51 +02:00
b0b712b2f6
fix: switch naming of nodes in dot to just values
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-05 20:28:58 +02:00
eb0b2a39f6
feat: implement recorder and visualization
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-01 17:10:24 +02:00
70c3b55f1a
chore: format sources
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-01 17:09:54 +02:00
f5c746b783
feat: port python code to JS
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-04-27 21:37:58 +02:00