Part of #30289. Inspired by #28676 (review).
Since there has been more than one case in the development of #28676 of calling a TxGraph
function without correctly setting the bool main_only
argument that many of its interface functions have, make these mandatory and explicit, using an enum class Level
:
0enum class Level {
1 TOP, //!< Refers to staging if it exists, main otherwise.
2 MAIN //!< Always refers to the main graph, whether staging is present or not.
3};