3 This is a possible `D3.js` chart for the recursive dependencies of the
4 `aptitude` package on Debian stable circa November 2019. See the chart on
6 <https://observablehq.com/@coding-exercise/hierarchical-edge-bundling>
10 To calculate recursive dependencies, I'm using something called
13 `apt-rdepends` man page says:
15 > By default, apt-rdepends shows a listing of each dependency a package
16 > has. It will also look at each of these fulfilling packages, and
17 > recursively lists their dependencies.
19 [apt-rdepends\_aptitude](./apt-rdepends_aptitude) was generated as
23 apt-rdepends aptitude > apt-rdepends_aptitude
28 [AptRdepends2JSON.py](./AptRdepends2JSON.py) is a one-off script
29 that goes from `apt-rdepends` output to JSON.
31 Script uses Python 3.8.0
37 For the most part, the chart is copy&paste from a `d3.hierarchy`
38 example… <https://observablehq.com/@d3/hierarchical-edge-bundling>
42 - Our data is simpler and thus we need neither the `id` function call in
43 `bilink` nor the `hierarchy` function.
45 - For browser support, we use the `flatMap` alternative proposed here…
46 <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap#Alternative>