Package com.jgalgo

Interface CyclesFinder


  • public interface CyclesFinder
    An algorithm that finds all cycles in a graph.
    Author:
    Barak Ugav
    • Method Detail

      • findAllCycles

        Iterator<Path> findAllCycles​(Graph g)
        Find all cycles in the given graph.
        Parameters:
        g - a graph
        Returns:
        an iterator that iteration over all cycles in the graph
      • newBuilder

        static CyclesFinder.Builder newBuilder()
        Create a new cycles finder algorithm builder.

        This is the recommended way to instantiate a new CyclesFinder object.

        Returns:
        a new builder that can build CyclesFinder objects