Template Function ADS::setDistance

Function Documentation

template<Graph G>
int ADS::setDistance(const G &g, const std::vector<bool> &A, const std::vector<bool> &B)

setDistance(): the fewest edges of a path from a node of A to one of B, 0 if they meet, INF if there is none

Pre:

A and B have a place per name