From be7a5e0c521d583670f1d1160a1d7f72db629d6d Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 17 Nov 2018 16:34:09 -0600 Subject: [PATCH] less variation in node size --- web/graphPlotter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/graphPlotter.py b/web/graphPlotter.py index dec470a..53c882d 100644 --- a/web/graphPlotter.py +++ b/web/graphPlotter.py @@ -59,8 +59,7 @@ def get_graph_json(G): neighbor_ratio = len(G.neighbors(n)) / float(max_neighbors) pos = n.attr['pos'].split(',', 1) centrality = centralities.get(n.name, 0) - pcentrality = (centrality + 0.0001) * 500 - size = (pcentrality ** 0.3 / 500) * 1000 + 1 + size = 5*(1 + 1*centrality) name = None#db.get(n.name) out_data['nodes'].append({