From c74e593c2def0d0028cb597089785a828ec9816d Mon Sep 17 00:00:00 2001 From: Ellen Emilia Anna Zscheile Date: Thu, 1 May 2025 23:29:25 +0200 Subject: [PATCH] feat(planar-incr-embed): logged edge count of normal edges only --- crates/planar-incr-embed/src/algo/pmg_astar.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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