|
|
@@ -71,7 +71,7 @@ for node_list in adjacency_list:
|
|
|
# new node_weight
|
|
|
new_node_weight = []
|
|
|
node_index = 0
|
|
|
-for i in range(1, len(adjacency_list) - 1):
|
|
|
+for i in range(1, len(adjacency_list)):
|
|
|
if (i in node_map):
|
|
|
if (len(new_node_weight) - 1 < node_map[i]):
|
|
|
new_node_weight.extend([0]*(node_map[i] + 1 - len(new_node_weight)))
|