Depsgraph Introspection using Python

Is there a way to introspect the details of the depsgraph from Python? To extract basically the underlying DAG, i.e. to explore from python more or less what debug_relations_graphviz draws. If not, is it something planned?

I don’t think this is planned currently (we don’t have a use case for this afaik). Why do you need this?

I need to add custom layers to meshes depending on the chain of modifiers they go through, including when used in another stakc of modifiers (say as the “other” object in a boolean), and depending on objects that change the evaluated world space position of points, so any parent/constraint/driver controlling the object.