Skip to content

Commit

Permalink
fix : _write_edges_to_json function modified #82
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Mar 24, 2021
1 parent 3db860e commit 648b999
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pyrgg/graph_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,14 @@ def _write_edges_to_json(buf, edge_dic, weight_dic):
edges = "".join([
edges,
'\t\t\t{\n\t\t\t\t"source": ',
'"',
str(key),
'",\n\t\t\t\t',
',\n\t\t\t\t',
'"target": ',
'"',
str(value),
'",\n\t\t\t\t',
',\n\t\t\t\t',
'"weight": ',
'"',
str(weight_dic[key][j]),
'"\n\t\t\t}'
'\n\t\t\t}'
])
buf.write(edges)

Expand Down

0 comments on commit 648b999

Please sign in to comment.