DAG transform updated, DAGWorld

DAGTransform class supports additional useful queries regarding
hierarchy. DAGWorld class created to manage dag nodes without
duplication.