Allows creation of subgraphs of the dependency graph for debugging purposes.