meshed.scrap.collapse_and_expand

Ideas on collapsing and expanding nodes See “Collapse and expand nodes” discussion: https://github.com/i2mint/meshed/discussions/54

class meshed.scrap.collapse_and_expand.CollapsedDAG(dag: DAG)[source]

To collapse a DAG into a single function

This is useful for when you want to use a DAG as a function, but you don’t want to see all the arguments.