Something like
from dagger import Dagger
dg = Dagger()
#.... add functions/layers here
#.... and here
dg.print()
# This should produce a dotmap + some dict-like representation of the DAG
There should be a way to export the DAG structure for both visualization, and translation into other systems.