From 6f29c59991925e8685a1911ce1b37c6097d7c517 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 16 Aug 2021 16:28:11 +0200 Subject: dense --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/index.js b/src/index.js index 6cc83e4..39b3c7d 100644 --- a/src/index.js +++ b/src/index.js @@ -28,8 +28,8 @@ async function main() { source: choice(trees[value]), target: index, }); - // don't link to the root node more than once! - if (trees[value][0]) { + // option: don't link to the root node more than once + if (window.location.hash === "#dense" && trees[value][0]) { trees[value].push(index); } else { trees[value] = [index]; -- cgit v1.2.3-70-g09d2