Oh hey, this is basically the type of algorithm that tools like WinDirStat, WizTree, GrandPerspective etc. use to visualize file and directory sizes in a filesystem.
And diskonaut and gdmap.
I how this kind of diagram as a Heatmap. I assume i was wrong all the time