Highlight edges with active flows
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user