Opened 14 months ago

Last modified 13 months ago

#26869 closed enhancement

py3: improve is_aperiodic to fix doctests — at Initial Version

Reported by: dcoudert Owned by:
Priority: major Milestone: sage-8.6
Component: graph theory Keywords: py3, graph
Cc: tscrim, chapoton, mercatp Merged in:
Authors: David Coudert Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:


The current implementation of is_aperiodic uses networkx and it yields an error in Python3 (certainly not the good version of networkx, could be fixed with a new version).

As we have method period that computes the period of a digraph, it suffices to check whether the period is 1 or not. This way, we don't pay the conversion to networkx anymore, and we fix some doctests in and in static_sparse_graph.pyx (calls is_aperiodic).

Change History (0)

Note: See TracTickets for help on using tickets.