num::structures::star_graph¶
Defined in header <structures/graph/generators.hpp>
template <typename Weight = double, std::integral Index = num::idx>
graph<Weight, Index> star_graph(std::type_identity_t<Index> n,
Weight weight = Weight{1});
Generate a star graph with center at vertex 0 and n-1 leaves.