Пример #1
0
        private void DrawCycle()
        {
            List <List <int> > graph = converter.ConvertToSimpleGraph(adjacencyList);

            UnweightedGraph unweightedGraph = new Algorithms.UnweightedGraph(graph);

            cycles = unweightedGraph.GetCycles();

            for (int i = 0; i < cycles.Count; i++)
            {
                ChangeColorEdges(GetColor(), cycles[i]);
            }
        }