(self)
return not networkx.is_directed_acyclic_graph(self._region.graph)
Test if the region contains a cycle.

        :return: True if the region contains a cycle, False otherwise.
        :rtype: bool
Test if the region contains a cycle.
Test if the region contains a cycle .
def _has_cycle(self):
        """
        Test if the region contains a cycle.

        :return: True if the region contains a cycle, False otherwise.
        :rtype: bool
        """

        return not networkx.is_directed_acyclic_graph(self._region.graph)
def _has_cycle ( self ) : return not networkx . is_directed_acyclic_graph ( self . _region . graph )