5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-09 16:00:27 +00:00

autopep8 graphPlotter

This commit is contained in:
Michał Zieliński 2015-07-27 21:16:01 +02:00
parent 5ae90eeae3
commit b2fbb011e6

View File

@ -17,7 +17,6 @@ def position_nodes(nodes, edges):
return G
def get_graph_json(G):
max_neighbors = 1
for n in G.iternodes():
@ -55,9 +54,6 @@ def get_graph_json(G):
return json.dumps(out_data)
def _gradient_color(ratio, colors):
jump = 1.0 / (len(colors) - 1)
gap_num = int(ratio / (jump + 0.0000001))