Skip to content

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});

Construct the star graph \(S_n\), centred at vertex 0.