Package com.jgalgo
Interface CyclesFinder
-
public interface CyclesFinderAn algorithm that finds all cycles in a graph.- Author:
- Barak Ugav
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCyclesFinder.BuilderA builder forCyclesFinderobjects.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<Path>findAllCycles(Graph g)Find all cycles in the given graph.static CyclesFinder.BuildernewBuilder()Create a new cycles finder algorithm builder.
-
-
-
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
CyclesFinderobject.- Returns:
- a new builder that can build
CyclesFinderobjects
-
-