summaryrefslogtreecommitdiffstats
path: root/src/CS340.TSP/Tour.cs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-04-23 16:34:12 -0500
committerToby Vincent <tobyv13@gmail.com>2021-04-23 16:34:12 -0500
commit66ecdbf20f2a29af26e4bfefb255e7fbe1061eac (patch)
tree1279f40c1838d1202fccf527b22c51f1d6b05a9f /src/CS340.TSP/Tour.cs
parent824469649aca839e9fa86c3f4dd00294d8eba8d3 (diff)
implimented MSTApproximate
Diffstat (limited to 'src/CS340.TSP/Tour.cs')
-rw-r--r--src/CS340.TSP/Tour.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CS340.TSP/Tour.cs b/src/CS340.TSP/Tour.cs
index 99c0f5d..27ab5a5 100644
--- a/src/CS340.TSP/Tour.cs
+++ b/src/CS340.TSP/Tour.cs
@@ -17,7 +17,7 @@ namespace TSP
}
// indexer: get vertex where vertex.Id == index
- public City this[int index] { get => Cities.Find(vertex => vertex.Id == index); }
+ public City this[int index] { get => Cities.Find(city => city.Id == index); }
public Tour() =>
Cities = new List<City>();