Package com.jgalgo
Interface CyclesFinder
-
public interface CyclesFinder
An algorithm that finds all cycles in a graph.- Author:
- Barak Ugav
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CyclesFinder.Builder
A builder forCyclesFinder
objects.
-
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.Builder
newBuilder()
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
CyclesFinder
object.- Returns:
- a new builder that can build
CyclesFinder
objects
-
-