I am investigating using MG in pyinstaller. One function it provides now is for a module "hook" file to veto an import. Specific case, module pydoc imports Tkinter, which should not happen unless the main program also imports Tkinter. So the pydoc hook looks for Tkinter in the import list of module pydoc and deletes it. There are other cases like this.
I am looking for the equivalent ability with MG. I think it might be, to find the pydoc node by name, and find the Tkinter node by name, and then use altgraph.ObjectGraph.removeReference(fromnode, tonode) on those nodes. Would that delete the Tkinter node if it had no other from-links, but retain it if it did?
In general, should I feel comfortable about dropping down to the ObjectGraph level of function with MG? Or should I request that something like this be surfaced as a member of MG directly?