num::concepts::incidence_structure¶
Defined in header <structures/concepts.hpp>
template <typename G, typename Index = num::idx>
concept incidence_structure = requires(const G g, Index u) {
{ g.n_vertices() } -> std::same_as<Index>;
{ g.n_edges() } -> std::same_as<Index>;
{ g.degree(u) } -> std::same_as<Index>;
{ g.neighbors(u) };
};
Graph \(G = (V, E)\) with neighbors and degree.