diff --git a/crates/planar-incr-embed/src/algo/pmg_astar.rs b/crates/planar-incr-embed/src/algo/pmg_astar.rs index 85688c1..c890b49 100644 --- a/crates/planar-incr-embed/src/algo/pmg_astar.rs +++ b/crates/planar-incr-embed/src/algo/pmg_astar.rs @@ -501,7 +501,15 @@ where edges: &self.edges, edge_paths: &taskres.edge_paths, }; - let edge_count = taskres.edge_paths.iter().map(|i| i.len()).sum::(); + let edge_count = taskres + .edge_paths + .iter() + .map(|i| { + i.iter() + .filter(|j| matches!(j, RelaxedPath::Normal(_))) + .count() + }) + .sum::(); match self.goals.get(next_goal_idx) { None => { // done with all goals