Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public static List <int[]> FindCycles(this Graph graph)
        {
            if (graph == null)
            {
                throw new ArgumentNullException(nameof(graph));
            }

            var searcher = new CyclesSearcher();

            return(searcher.FindCycles(graph));
        }