From e69515e108a64ea82a3ab3030de8e7ab366591d9 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <thomasfkjorna@gmail.com>
Date: Fri, 23 Jul 2021 18:38:43 +0200
Subject: commented out the orphans

---
 pages/index.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'pages/index.tsx')

diff --git a/pages/index.tsx b/pages/index.tsx
index 0e1c413..86ad7b3 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -459,7 +459,7 @@ export const Tweaks = function (props: TweakProps) {
                 divider={<StackDivider borderColor="gray.200" />}
                 align="stretch"
               >
-                <Box>
+                {/* <Box>
                   <Text>Kill orphans</Text>
                   <Switch
                     colorScheme="purple"
@@ -468,7 +468,7 @@ export const Tweaks = function (props: TweakProps) {
                     }}
                     isChecked={physics.orphans}
                   ></Switch>
-                </Box>
+                </Box> */}
                 <SliderWithInfo
                   label="Node size"
                   value={physics.nodeRel}
@@ -626,9 +626,9 @@ export const Graph = function (props: GraphProps) {
 
   const scopedNodes = graphData.nodes.filter((node) => {
     const links = linksByNodeId[node.id as string] ?? []
-    if (physics.orphans && links.length === 0) {
-      return false
-    }
+    /* if (physics.orphans && links.length === 0) {
+     *   return false
+     * } */
     return (
       scope.nodeIds.includes(node.id as string) ||
       links.some((link) => {
-- 
cgit v1.2.3

