dc6905b5e2
fix(mypy): fix major issues with mypy
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-22 21:07:40 +02:00
e28f578fc2
fix(rotations): move rotations to the tree
...
Move rotations to the RankedTree, which allows us to factor out the
functionality regarding rotations when root of the tree changes.
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-22 21:00:18 +02:00
3bba030d53
feat: handle root change in rotate function
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-20 11:50:48 +02:00
d4d0b65f45
feat: implement inorder traversal of ranked tree
...
Fixes #4
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-15 18:07:50 +02:00
705d5cfa17
fix: do not allow duplicit keys
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-12 12:20:24 +02:00
bc981a8bb4
node: add type signatures
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 15:02:28 +01:00
70261aed50
Add python implementation and tests
...
Signed-off-by: Matej Focko <me@mfocko.xyz>
2021-01-04 10:46:12 +01:00