Highlight edges with active flows

This commit is contained in:
2025-03-20 23:10:03 +01:00
parent 111759fbbb
commit 681cdee139
3 changed files with 9 additions and 4 deletions

View File

@@ -113,6 +113,9 @@ impl MaxflowProblem {
let (flow, capacity): (u64, u64) = *e.payload();
default_edge_transform(e);
e.set_label(format!("{flow}:{capacity}"));
if flow > 0 {
e.set_selected(true);
}
}
);
graph.node_mut(self.s).expect("node index not found").set_label(String::from("s"));