jkunlin 8 лет назад
Родитель
Сommit
b74021261e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      graphml2dimacs.py

+ 1 - 1
graphml2dimacs.py

@@ -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)))