Template Function ADS::genericVisit

Function Documentation

template<Graph G>
std::pair<std::vector<int>, std::vector<std::pair<int, int>>> ADS::genericVisit(const G &g, int r, Choice c)

the general visit from r: the nodes in the order in which they join R, and the edges of the tree B in the order in which they join it

Pre:

r is a node

Post:

B has one edge less than R, each from a node already in R (audit)