deal better with unweighted graphs; better path splitting