From 06c56b550cef77ade9cd41f1ff186caca10030ca Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Wed, 12 May 2021 08:53:48 +0200
Subject: [PATCH] 
 src/find_interaction_cluster/graph_figures/create_community_node_graph.py:
 change of node size and edges with

---
 .../graph_figures/create_community_node_graph.py              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/find_interaction_cluster/graph_figures/create_community_node_graph.py b/src/find_interaction_cluster/graph_figures/create_community_node_graph.py
index 63222d81..044e188f 100644
--- a/src/find_interaction_cluster/graph_figures/create_community_node_graph.py
+++ b/src/find_interaction_cluster/graph_figures/create_community_node_graph.py
@@ -105,13 +105,13 @@ def create_graph(list_nodes: List[str], list_edges: List[Tuple],
     :return: The community sized network
     """
     g = nx.Graph()
-    nodes = [(n, {"node_size": s, "title": str(s), "size": log2(s)})
+    nodes = [(n, {"node_size": s, "title": str(s), "size": log2(s) * 2})
              for n, s in zip(list_nodes, sizes)]
     g.add_nodes_from(nodes)
     g.add_weighted_edges_from(list_edges)
     for a, b, c in list_edges:
         g.edges[a, b]["title"] = str(g.edges[a, b]["weight"])
-        g.edges[a, b]["width"] = log10(g.edges[a, b]["weight"])
+        g.edges[a, b]["width"] = log10(g.edges[a, b]["weight"] * 2)
     return g
 
 
-- 
GitLab