shortest path on DAG, very good