From 73308af061af5e17ac7d4a73fa027a2f303c70dd Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Fri, 23 Jul 2021 11:02:26 +0300 Subject: Update graph data when Emacs node changes + minor improvements --- app_expo/data/randomdata.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 app_expo/data/randomdata.js (limited to 'app_expo/data/randomdata.js') diff --git a/app_expo/data/randomdata.js b/app_expo/data/randomdata.js deleted file mode 100644 index 2162485..0000000 --- a/app_expo/data/randomdata.js +++ /dev/null @@ -1,11 +0,0 @@ -function genRandomTree(N = 300, reverse = false) { - return { - nodes: [...Array(N).keys()].map((i) => ({ id: i })), - links: [...Array(N).keys()] - .filter((id) => id) - .map((id) => ({ - [reverse ? 'target' : 'source']: id, - [reverse ? 'source' : 'target']: Math.round(Math.random() * (id - 1)), - })), - } -} -- cgit v1.2.3