public void TestGenetic() { genetic = new Genetic(); genetic.graph = graph; genetic.GenerateChromosomes(100); genetic.mutationRate = (int)0.047 * genetic.chromosomes.Count; genetic.crossingRate = genetic.chromosomes.Count; foreach (var v in genetic.GeneticOptimization(100)) { System.Diagnostics.Debug.Write(v.index + " "); } System.Diagnostics.Debug.WriteLine($"{genetic.chromosomes[0].genes[0].index}\n Distance: {genetic.chromosomes[0].rating}"); }