Skip to content

Commit f96e889

Browse files
committed
TST: use MultiDiGraphMatcher
for compatibility with `networkx >= 3.5`. This change works also using earlier `networkx` versions.
1 parent e44b335 commit f96e889

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/bdd_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,10 @@ def compare(u, bdd, h):
15391539
post = nx.descendants(g, u)
15401540
post.add(u)
15411541
r = g.subgraph(post)
1542-
gm = iso.GraphMatcher(r, h, node_match=_nm, edge_match=_em)
1542+
gm = iso.MultiDiGraphMatcher(
1543+
r, h,
1544+
node_match=_nm,
1545+
edge_match=_em)
15431546
assert gm.is_isomorphic()
15441547
d = gm.mapping
15451548
assert d[1] == 1

0 commit comments

Comments
 (0)