checkpoint 2025-08-22
This commit is contained in:
@@ -44,7 +44,6 @@ impl MaxflowProblem {
|
||||
// select source (s) and sink (t)
|
||||
let (s,t) = nodes.choose_multiple(&mut rng, 2).copied().collect_tuple::<(NodeIndex, NodeIndex)>().expect("not enough nodes");
|
||||
|
||||
// TODO: this probably takes forever...
|
||||
// iterate over all possible edges
|
||||
let mut possible_edges: Vec<(NodeIndex, NodeIndex, f32)> = Vec::new();
|
||||
for pair in nodes.clone().into_iter().combinations(2) {
|
||||
@@ -141,4 +140,9 @@ impl MaxflowProblem {
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
||||
fn intersects_poly(a: (f32, f32), b: (f32, f32), c: (f32, f32), d: (f32, f32)) -> bool {
|
||||
let mut intersects = Self::intersects(a, b, c, d);
|
||||
todo!();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user