all_circuits crashes on 2.22

Hi all,

I'm running 2.22 on Ubuntu 16.04.

Iterating over all_circuits() results in a segmentation fault. e.g.,

cycles = gt.all_circuits(G)
for c in cycles:

I also tried iterating over it by to see which cycle causes
the crash. Turns out it crashes sporadically at different iterations.
Sometimes on the first, sometimes on the seventh, etc.

This happens for all combinations of python 2.7 and python 3.6 under WSL
16.04 or pure 16.04 Ubuntu.

My cursory search didn't get me anywhere. Is this a bug or an error on my

Your help is appreciated,

Please test again on version 2.23. If the problem still occurs, please
provide a complete and self-contained example that shows the problem.


2.23 fixed the crash. Thank you.