Skip to content

Commit

Permalink
fix : gl_maker function updated #67
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Sep 30, 2020
1 parent a667cd5 commit 9232d3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyrgg/graph_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,12 @@ def gl_maker(
with open(file_name + ".gl", "w") as buf:
for key, edge_val in edge_dic.items():
line_data = str(key)
write_flag = False
for j, value in enumerate(edge_val):
write_flag = True
line_data += " " + str(value) + ":" + str(weight_dic[key][j])
buf.write(line_data + "\n")
if write_flag:
buf.write(line_data + "\n")
return edge_number


Expand Down

0 comments on commit 9232d3a

Please sign in to comment.