Closed sebrockm closed 2 years ago
It does work, if you do it correctly.
My error was that I did not specify overloads for property_map
like so:
namespace boost
{
template<>
struct property_map<my_graph::Graph, boost::edge_capacity_t>
{
using type = constant_writable_property_map<my_graph::Graph::edge_descriptor, int>;
using const_type = constant_writable_property_map<my_graph::Graph::edge_descriptor, int>;
};
}
An updated compiling example is here: https://compiler-explorer.com/z/PjP6MWsWv
According to the documentation, there is a minimalistic overload of
boykov_kolmogorov_max_flow
that only takes the graph, a source, and a sink. All other parameters are set to their defaults (as stated in the section "Named Parameters").However, this overload doesn't compile. Minimal reproducible example:
Live on compiler-explorer.