shortest paths in DAG..