|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Statistics about a network flow. More...
#include <tpl_maxflow.H>
Public Member Functions | |
| std::string | to_string () const |
| Format statistics as a string. | |
| void | print () const |
| Print statistics to standard output. | |
Public Attributes | |
| Flow_Type | total_flow {0} |
| Total flow value. | |
| Flow_Type | total_capacity {0} |
| Sum of all capacities. | |
| size_t | num_saturated_arcs {0} |
| Arcs with flow = capacity. | |
| size_t | num_empty_arcs {0} |
| Arcs with flow = 0. | |
| size_t | num_partial_arcs {0} |
| Arcs with 0 < flow < capacity. | |
| double | utilization {0.0} |
| flow / capacity ratio | |
Statistics about a network flow.
Definition at line 1386 of file tpl_maxflow.H.
|
inline |
Print statistics to standard output.
Formats the statistics and outputs to stdout.
| std::bad_alloc | If memory allocation fails while formatting output. |
Definition at line 1428 of file tpl_maxflow.H.
References Aleph::FlowStatistics< Flow_Type >::to_string().
|
inline |
Format statistics as a string.
Builds a formatted string representation of the statistics.
| std::bad_alloc | If memory allocation fails while building the string. |
Definition at line 1405 of file tpl_maxflow.H.
References Aleph::maps(), Aleph::FlowStatistics< Flow_Type >::num_empty_arcs, Aleph::FlowStatistics< Flow_Type >::num_partial_arcs, Aleph::FlowStatistics< Flow_Type >::num_saturated_arcs, Aleph::FlowStatistics< Flow_Type >::total_capacity, Aleph::FlowStatistics< Flow_Type >::total_flow, and Aleph::FlowStatistics< Flow_Type >::utilization.
Referenced by Aleph::FlowStatistics< Flow_Type >::print().
| size_t Aleph::FlowStatistics< Flow_Type >::num_empty_arcs {0} |
Arcs with flow = 0.
Definition at line 1391 of file tpl_maxflow.H.
Referenced by Aleph::compute_flow_statistics(), and Aleph::FlowStatistics< Flow_Type >::to_string().
| size_t Aleph::FlowStatistics< Flow_Type >::num_partial_arcs {0} |
Arcs with 0 < flow < capacity.
Definition at line 1392 of file tpl_maxflow.H.
Referenced by Aleph::compute_flow_statistics(), and Aleph::FlowStatistics< Flow_Type >::to_string().
| size_t Aleph::FlowStatistics< Flow_Type >::num_saturated_arcs {0} |
Arcs with flow = capacity.
Definition at line 1390 of file tpl_maxflow.H.
Referenced by Aleph::compute_flow_statistics(), and Aleph::FlowStatistics< Flow_Type >::to_string().
| Flow_Type Aleph::FlowStatistics< Flow_Type >::total_capacity {0} |
Sum of all capacities.
Definition at line 1389 of file tpl_maxflow.H.
Referenced by Aleph::compute_flow_statistics(), and Aleph::FlowStatistics< Flow_Type >::to_string().
| Flow_Type Aleph::FlowStatistics< Flow_Type >::total_flow {0} |
Total flow value.
Definition at line 1388 of file tpl_maxflow.H.
Referenced by Aleph::compute_flow_statistics(), and Aleph::FlowStatistics< Flow_Type >::to_string().
| double Aleph::FlowStatistics< Flow_Type >::utilization {0.0} |
flow / capacity ratio
Definition at line 1393 of file tpl_maxflow.H.
Referenced by Aleph::compute_flow_statistics(), and Aleph::FlowStatistics< Flow_Type >::to_string().