num::structures::cycle_graph¶
Defined in header <structures/graph/generators.hpp>
template <typename Weight = double, std::integral Index = num::idx>
graph<Weight, Index> cycle_graph(std::type_identity_t<Index> n,
Weight weight = Weight{1});
Generate an undirected cycle graph: 0 - 1 - ...
- (n-1) - 0.