Skip to content

Commit

Permalink
add docker container readme
Browse files Browse the repository at this point in the history
  • Loading branch information
songtao committed Apr 15, 2021
1 parent 0431f6b commit 891840b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker/scripts/convert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# python 2
import graph
import sys
import json
import pickle # python 2

infile = sys.argv[1]
outfile = sys.argv[2]

jsonedges = json.load(open(infile))
picklegraph = graph.link2graph(jsonedges)

pickle.dump(picklegraph, open(outfile, "wb"))

0 comments on commit 891840b

Please sign in to comment.