|
nxpp
Header-only graph utilities on top of Boost Graph Library
|
Result of a min-cost max-flow computation. More...
#include <flow.hpp>

Public Attributes | |
| long | flow = 0 |
| long | cost = 0 |
| std::map< std::pair< NodeID, NodeID >, long > | edge_flows |
| std::map< std::size_t, long > | edge_flows_by_id |
Result of a min-cost max-flow computation.
The total pushed flow and total cost are reported alongside both an endpoint-keyed convenience view and a precise edge-ID keyed flow view. In multigraphs, prefer edge_flows_by_id whenever one concrete parallel edge matters.
Example: