Release 0.3.0 #8
@@ -392,7 +392,7 @@ pub fn assert_isomorphic<G: GraphTopology, H: GraphTopology>(
|
|||||||
original.edge_count(),
|
original.edge_count(),
|
||||||
"other graph should have the same edge count as the original"
|
"other graph should have the same edge count as the original"
|
||||||
);
|
);
|
||||||
for &v in vertices.iter() {
|
for &v in vertices {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
other.degree(vertex_map(v)),
|
other.degree(vertex_map(v)),
|
||||||
original.degree(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"
|
"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!(
|
assert_eq!(
|
||||||
other.incident_vertices(edge_map(e)),
|
other.incident_vertices(edge_map(e)),
|
||||||
(vertex_map(u), vertex_map(v)),
|
(vertex_map(u), vertex_map(v)),
|
||||||
|
|||||||
+1
-1
@@ -162,7 +162,7 @@ where
|
|||||||
G::Vertex: Debug,
|
G::Vertex: Debug,
|
||||||
{
|
{
|
||||||
let (graph, vertices, _, _) = G::standard();
|
let (graph, vertices, _, _) = G::standard();
|
||||||
for v in vertices {
|
for &v in &vertices {
|
||||||
assert!(
|
assert!(
|
||||||
algorithms::dfs_find(&graph, vertices[0], v),
|
algorithms::dfs_find(&graph, vertices[0], v),
|
||||||
"vertex {v:?} should be reachable from {:?}",
|
"vertex {v:?} should be reachable from {:?}",
|
||||||
|
|||||||
Reference in New Issue
Block a user