beginning longest path in DAG.