mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-28 16:43:38 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
502953aa70
commit
7b987a0dd9
@ -355,8 +355,7 @@ class FibonacciHeap:
|
|||||||
Args:
|
Args:
|
||||||
node_to_cut (FibonacciHeapNode): The node to be cut recursively.
|
node_to_cut (FibonacciHeapNode): The node to be cut recursively.
|
||||||
"""
|
"""
|
||||||
temp_parent = node_to_cut.parent
|
if temp_parent := node_to_cut.parent:
|
||||||
if temp_parent:
|
|
||||||
if not node_to_cut.mark:
|
if not node_to_cut.mark:
|
||||||
node_to_cut.mark = True
|
node_to_cut.mark = True
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user