• Converting trees to dags