mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +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…
Reference in New Issue
Block a user