Hi,
This does not make sense, for two reasons.
First: A context is the result of running the solver algorithm, and the graph is a visual representation of that. Adding edges to it to graft in other data (a package's private build requires in this case) would change the meaning of this graph entirely.
Second: It doesn't make sense to add the private build requirements of all packages in a resolve - only one package (the one that got built) ever has its private build requirements added to an env request (its build env).
If the intent is to see the dependency graph for a real build env, that would contain a package's private-build-requires (as well as standard build-requires, and requires), then what you're actually asking for is a way to create that env, and that's reasonable.
What could be good is to add a new option to rez-env to give you that. For example, currently there is the -b option, but all that does is include all the build_requires of packages in the resolve. Perhaps we could add a -B option (which is more like, recreate the actual build env for a specific package). In this case, rez-env would be restricted to one PKG (the one to recreate the build env for) and would then include its private and public build requires.
Does this describe what you're after?
Thx
A