Fix loop patterns

This commit is contained in:
2026-10-15 08:45:18 +02:00
parent 653cd39279
commit eab5a63e6c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -392,7 +392,7 @@ pub fn assert_isomorphic<G: GraphTopology, H: GraphTopology>(
original.edge_count(),
"other graph should have the same edge count as the original"
);
for &v in vertices.iter() {
for &v in vertices {
assert_eq!(
other.degree(vertex_map(v)),
original.degree(v),
@@ -415,7 +415,7 @@ pub fn assert_isomorphic<G: GraphTopology, H: GraphTopology>(
"expected incidences {expected:?} of vertex {v:?} are missing in the other graph"
);
}
for &(e, u, v) in edges.iter() {
for &(e, u, v) in edges {
assert_eq!(
other.incident_vertices(edge_map(e)),
(vertex_map(u), vertex_map(v)),