Skip to content

Commit 660976f

Browse files
committed
Added complete implementation of Fibonacci Heap
1 parent 7b987a0 commit 660976f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

data_structures/heap/fibonacci_heap.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ class FibonacciHeapNode:
3838
degree (int): The number of children of this node.
3939
parent (FibonacciHeapNode): The parent of this node.
4040
child (FibonacciHeapNode): The first child of this node.
41-
mark (bool): Whether this node has lost a child since it became a child of another node.
41+
mark (bool): Whether this node has
42+
lost a child since it became a child of another node.
4243
next (FibonacciHeapNode): The next sibling in the circular doubly-linked list.
43-
prev (FibonacciHeapNode): The previous sibling in the circular doubly-linked list.
44+
prev (FibonacciHeapNode): The previous sibling
45+
in the circular doubly-linked list.
4446
"""
4547

4648
def __init__(self, key, value=None):

0 commit comments

Comments
 (0)