Class CyclesEnumeratorAbstract

    • Constructor Detail

      • CyclesEnumeratorAbstract

        public CyclesEnumeratorAbstract()
        Default constructor.
    • Method Detail

      • cyclesIter

        public <V,​E> Iterator<Path<V,​E>> cyclesIter​(Graph<V,​E> g)
        Description copied from interface: CyclesEnumerator
        Iterate over all cycles in the given graph.

        If g is IntGraph, the returned iterator will iterate over IPath objects.

        Specified by:
        cyclesIter in interface CyclesEnumerator
        Type Parameters:
        V - the vertices type
        E - the edges type
        Parameters:
        g - a graph
        Returns:
        an iterator that iteration over all cycles in the graph