4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-08-14 15:58:10 +00:00

Validate received graph format

This commit is contained in:
Vanhala Antti
2014-06-04 21:41:33 +03:00
parent 613b5aec09
commit ddb2a681e4
5 changed files with 59 additions and 28 deletions

View File

@@ -6,6 +6,7 @@ import graphPlotter
def generate_graph(time_limit=60*60*3):
nodes, edges = load_graph_from_db(time_limit)
print '%d nodes, %d edges' % (len(nodes), len(edges))
graph = graphPlotter.position_nodes(nodes, edges)
json = graphPlotter.get_graph_json(graph)