Depedency tree of php composer

Given a composer.json file, can you create a dependency tree while dry-running the installation?

According to the composer docs, the composer show --tree command only works for installed packages, is there a simple way to make it run with a dry-run installation?

Is there a different tool, other than composer, which can statically analyze the dependency tree of a composer.json?