Skip to content

num::structures::debug::check_positive_weight

Defined in header <structures/debug.hpp>

template <typename Weight>
void check_positive_weight(const Weight &weight,
                           std::string_view label = "graph::edge_weight",
                           std::source_location loc = std::source_location::current());

Check that an edge weight is positive: \(w > 0\).