Getting dependency graph of a pull request branch

If a developer of a project introduces new dependencies on a fork of a repository and makes a PR, is it possible to grab a dependency graph of that fork and compare the changes from what is upstream on the default branch? Or does the dependency graph API only support the default branch at the moment?