Common code from Decomposition and ItemTree now in the class DAG