private void button3_Click_1(object sender, EventArgs e) { var weightsByPrime = algoService.UsePrimeAlgo(V, W, new List <Weight>()); var weightsByKruskal = algoService.UseKruskalAlgo(V, W); var resultWeights = weightsByPrime.Union(weightsByKruskal).ToList(); var edges = SynchronizeEdgesAndWeights(resultWeights); var dfsService = new DFSService(); dfsService.GetAndPrintCycles(V, edges, listBoxMatrix); DrawGraph(V, edges, resultWeights); }
//поиск элементарных циклов private void cycleButton_Click(object sender, EventArgs e) { dfsService.GetAndPrintCycles(CurV, CurE, listBoxMatrix); }