Kaynağa Gözat

fix bug of graphml2dimacs.py

jkunlin 8 yıl önce
ebeveyn
işleme
b74021261e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)))