Template Function ADS::universalSink

Function Documentation

template<class T>
int ADS::universalSink(const std::vector<std::vector<T>> &A)

universalSink(): the node with an edge from every other one and no edge out, NIL if there is none, from the matrix of adjacency A, whose entries convert to bool (the diagonal is not read)

Pre:

A is square