cargo-graph
cargo-graph copied to clipboard
Erdős-style graph painting
It makes complex graphs a bit more readable.

(mod 3 black-red-blue painting)
I'm not familiar with this, could you elaborate or point a link for this? I did some quick googling, if you've got something specific I'd be interested to see it.
https://en.wikipedia.org/wiki/Erd%C5%91s_number
So, the root have n = 0. Direct dependencies of the root have n = 1. Dependencies of these dependencies have n = 2 if they're not direct dependencies of the root. And so on.
The pic uses three colours, so n = 0 → black, n = 1 → red, n = 2 → blue, and n = 3 → black again.