disambiguate duplicate variable name 'node' within inner loop for readability

pull/34/head
Alfredo 2023-11-15 10:56:01 -05:00
rodzic 1c641c7f4b
commit e3083577b2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -29,7 +29,7 @@ def _arrange(node_tree, padding: typing.Tuple[float, float] = (50, 25)):
column_index = {}
for node in reversed(sorted_nodes):
column_index[node] = max([ column_index[node] for node in graph[node] ], default=-1) + 1
column_index[node] = max([ column_index[adj_node] for adj_node in graph[node] ], default=-1) + 1
if column_index[node] == len(columns):
columns.append([node])
else: