mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2025-08-14 19:28:09 +00:00
autopep8 graphPlotter
This commit is contained in:
@@ -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))
|
||||||
|
Reference in New Issue
Block a user