Interface DirectedSimpleCycles<V,​E>

    • Method Detail

      • findSimpleCycles

        default List<List<V>> findSimpleCycles()
        Find the simple cycles of the graph.
        Returns:
        The list of all simple cycles. Possibly empty but never null.
      • findSimpleCycles

        void findSimpleCycles​(Consumer<List<V>> consumer)
        Find the simple cycles of the graph.
        Parameters:
        consumer - Consumer that will be called with each cycle found.