From d315e75b91023fc90da32051bca11b5d43381c33 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 5 Aug 2022 11:04:01 -0700
Subject: [PATCH] feat: better graph scaling (closes #170)

---
 assets/js/graph.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assets/js/graph.js b/assets/js/graph.js
index 174d494..c89877b 100644
--- a/assets/js/graph.js
+++ b/assets/js/graph.js
@@ -155,7 +155,7 @@ async function drawGraph(baseUrl, isHome, pathColors, graphConfig) {
   const nodeRadius = (d) => {
     const numOut = index.links[d.id]?.length || 0
     const numIn = index.backlinks[d.id]?.length || 0
-    return 3 + (numOut + numIn) / 4
+    return 2 + Math.sqrt(numOut + numIn)
   }
 
   // draw individual nodes