Fix IncidenceCursor for AppendGraph and Graph, and add tests

This commit is contained in:
2026-07-17 22:06:28 +02:00
parent 5fa415841e
commit 3fa4b66981
3 changed files with 212 additions and 20 deletions
+3 -1
View File
@@ -34,7 +34,9 @@ pub struct AppendGraphIncidenceCursor {
impl IncidenceCursor<AppendGraph> for AppendGraphIncidenceCursor {
fn next(&mut self, graph: &AppendGraph) -> Option<(Vertex, Edge)> {
graph.step_incidence(&mut self.incidence)
graph
.step_incidence(&mut self.incidence)
.map(|(v, e)| (v, e.normalize()))
}
}