DAG shortest path stuff.