Converting an auto scheduler Compute DAG to JSON

Hi, I want to convert the DAG of an auto scheduling task to JSON/dictionary. My use case is that I need to create a visual graph (such as a dot file) from a Compute DAG.

I’m open to trying other things as well.

Does anyone have any idea how I can accomplish this?