Function ADS::adjFromIncidence
Defined in File Graph.h
Function Documentation
-
inline std::vector<int> ADS::adjFromIncidence(const std::vector<std::vector<int>> &B, int u, bool directed)
the adjacent nodes of u from the matrix of incidence B of a graph, oriented or not, in the order of the columns
- Pre:
u is a row of B