Output flow in decimal.
This commit is contained in:
parent
4dba841c22
commit
ffba4f1f4c
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ fn main() {
|
||||||
max_flow,
|
max_flow,
|
||||||
max_hops,
|
max_hops,
|
||||||
);
|
);
|
||||||
println!("Found flow: {flow}");
|
println!("Found flow: {}", flow.to_decimal());
|
||||||
//println!("{:?}", transfers);
|
//println!("{:?}", transfers);
|
||||||
|
|
||||||
let result = json::object! {
|
let result = json::object! {
|
||||||
|
|
|
@ -52,7 +52,7 @@ pub fn compute_flow(
|
||||||
!out.is_empty()
|
!out.is_empty()
|
||||||
});
|
});
|
||||||
|
|
||||||
println!("Max flow: {flow}");
|
println!("Max flow: {}", flow.to_decimal());
|
||||||
|
|
||||||
if flow > requested_flow {
|
if flow > requested_flow {
|
||||||
let still_to_prune = prune_flow(source, sink, flow - requested_flow, &mut used_edges);
|
let still_to_prune = prune_flow(source, sink, flow - requested_flow, &mut used_edges);
|
||||||
|
|
Loading…
Reference in a new issue