Implemented all DAG member functions.