Content deleted Content added
m Bot: Migrating 4 interwiki links, now provided by Wikidata on d:q583889 (Report Errors) |
→Sample implementation: do not use var name "list" in python, it is a standard function |
||
Line 215:
seen = [0] * n # neighbours seen since last relabel
# node "queue"
def push(u, v):
Line 251:
p = 0
while p < len(
u =
old_height = height[u]
discharge(u)
if height[u] > old_height:
p = 0 # start from front of list
else:
|