Fix loop patterns
This commit is contained in:
@@ -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)),
|
||||
|
||||
+1
-1
@@ -162,7 +162,7 @@ where
|
||||
G::Vertex: Debug,
|
||||
{
|
||||
let (graph, vertices, _, _) = G::standard();
|
||||
for v in vertices {
|
||||
for &v in &vertices {
|
||||
assert!(
|
||||
algorithms::dfs_find(&graph, vertices[0], v),
|
||||
"vertex {v:?} should be reachable from {:?}",
|
||||
|
||||
Reference in New Issue
Block a user