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

Public Attributes | |
| long | value = 0 |
| std::map< std::pair< NodeID, NodeID >, long > | flow |
| std::map< std::size_t, long > | edge_flows_by_id |
Result of a maximum-flow computation.
The value field stores the total flow. The flow member is the endpoint-keyed convenience view, while edge_flows_by_id keeps the precise flow assignment for each wrapper-tracked edge ID. In multigraphs, use edge_flows_by_id when one concrete parallel edge matters.
Example: