[graph-tool] All Pairs Shortest Path with limitations