public static async Task <List <int[]> > FindCyclesAsync(this Graph graph, IProgress <int[]> progress, CancellationToken ct) { if (graph == null) { throw new ArgumentNullException(nameof(graph)); } var searcher = new CyclesSearcher(); return(await searcher.FindCyclesAsync(graph, progress, ct)); }
public static List <int[]> FindCycles(this Graph graph) { if (graph == null) { throw new ArgumentNullException(nameof(graph)); } var searcher = new CyclesSearcher(); return(searcher.FindCycles(graph)); }