Преглед на файлове

fix bug of graphml2dimacs.py

jkunlin преди 8 години
родител
ревизия
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)))