mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 14:00:27 +00:00
autopep8 graphPlotter
This commit is contained in:
parent
5ae90eeae3
commit
b2fbb011e6
@ -17,7 +17,6 @@ def position_nodes(nodes, edges):
|
|||||||
return G
|
return G
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_graph_json(G):
|
def get_graph_json(G):
|
||||||
max_neighbors = 1
|
max_neighbors = 1
|
||||||
for n in G.iternodes():
|
for n in G.iternodes():
|
||||||
@ -55,9 +54,6 @@ def get_graph_json(G):
|
|||||||
return json.dumps(out_data)
|
return json.dumps(out_data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _gradient_color(ratio, colors):
|
def _gradient_color(ratio, colors):
|
||||||
jump = 1.0 / (len(colors) - 1)
|
jump = 1.0 / (len(colors) - 1)
|
||||||
gap_num = int(ratio / (jump + 0.0000001))
|
gap_num = int(ratio / (jump + 0.0000001))
|
||||||
|
Loading…
Reference in New Issue
Block a user