Skip to content

Commit dcbfc9c

Browse files
committed
Use directed instead of undirected graph iso
On Python 3.11 networkx complains of using GraphMatcher on directed graphs since version 3.5
1 parent 3ce75d5 commit dcbfc9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inflation/InflationProblem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ def _party_relabelling_symmetries(self) -> np.ndarray:
10101010
for c, parents in enumerate(self.parents_per_party):
10111011
for p in parents:
10121012
g1.add_edge(p+self.nr_sources, c + nr_sources)
1013-
GMgen = isomorphism.GraphMatcher(g1, g1)
1013+
GMgen = isomorphism.DiGraphMatcher(g1, g1)
10141014
discovered_automorphisms = list()
10151015
for mapping in GMgen.isomorphisms_iter():
10161016
valid_automorphism = True

0 commit comments

Comments
 (0)