The package analyzer analyzes a solution and renders a HTML page that shows summary – see https://ignatandrei.github.io/PackageAnalyzer/
The relations between projects could be rendered as a mermaid flowchart – as an example,

But … I have encountered another project https://github.com/matzehuels/stacktower – and the rendering is far more interesting.
You can have the same output by running near your solution project
dotnet tool install –global netpackageanalyzerconsole
dotnet PackageAnalyzer generateFiles -wg HtmlSummary