Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updating data

  • Loading branch information...
commit fa98d2ac7fdbbec15f55932e781e5f2d6aba9386 1 parent a3f390e
Romain Yon authored
4 data/aggregator.py
@@ -40,7 +40,7 @@
40 40 hospitalsPath = 'source/Hospitals.gexf'
41 41
42 42 #-----------------------------------
43   -# (Pre)Processing the different graphs
  43 +# (Pre)Processing the different graphscle
44 44 #-----------------------------------
45 45 def process_roads(roadPath):
46 46 print 'Processing Roads...'
@@ -271,7 +271,7 @@ def extract_reduced_graph(G, centroids, idx, zone):
271 271 return MG
272 272
273 273 def write_json(G, i):
274   - data = json_graph.node_link_data(G)
  274 + data = json_graph.adjacency_data(G)
275 275 s = json.dumps(data)
276 276 f = open(outFileName.format('-{0}'.format(i),"json"), 'w')
277 277 f.write(s)
2  data/shanghaiNetwork-1000.json
1 addition, 1 deletion not shown
2  data/shanghaiNetwork-150.json
1 addition, 1 deletion not shown
2  data/shanghaiNetwork-1500.json
1 addition, 1 deletion not shown
2  data/shanghaiNetwork-2000.json
1 addition, 1 deletion not shown
2  data/shanghaiNetwork-2500.json
1 addition, 1 deletion not shown
2  data/shanghaiNetwork-500.json
1 addition, 1 deletion not shown

0 comments on commit fa98d2a

Please sign in to comment.
Something went wrong with that request. Please try again.