Function ADS::detail::hamilton

Function Documentation

inline std::optional<Nodes> ADS::detail::hamilton(const Adjacency &G, const Nodes &starts, bool cycle, int end = -1)

a path through all the nodes, from the first one in starts, with adjacent consecutive nodes, closed if cycle, ending in end if >= 0