See the introduction blog here đź”—
Tidy is designed specifically for tree layout. Graph and DAG data are not supported.
The layout algorithm is based on paper "Drawing non-layered tidy trees in linear time".
A. van der Ploeg, “Drawing non-layered tidy trees in linear time,”Software: Practice and Experience, vol. 44, no. 12, pp. 1467–1484, 2014, doi: 10.1002/spe.2213.