summaryrefslogtreecommitdiffstats
path: root/src/CS340.TSP/TSP.cs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-04-22 01:08:33 -0500
committerToby Vincent <tobyv13@gmail.com>2021-04-22 01:08:33 -0500
commit292555a07b72ae1470c49ee2cee82db16d1c9cbd (patch)
tree21418f63624c37befaa34f57886d47b4a9824a8c /src/CS340.TSP/TSP.cs
parentd2dea1b16ff29f6e45fca971290f94d4e0ed2467 (diff)
added more generics
Diffstat (limited to 'src/CS340.TSP/TSP.cs')
-rw-r--r--src/CS340.TSP/TSP.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/CS340.TSP/TSP.cs b/src/CS340.TSP/TSP.cs
index de7eda8..a26fe6c 100644
--- a/src/CS340.TSP/TSP.cs
+++ b/src/CS340.TSP/TSP.cs
@@ -1,18 +1,20 @@
using System.Diagnostics;
using System.Linq;
+using System.Text.RegularExpressions;
using Graph;
+using Graph.IO;
namespace TSP
{
- using City = Vertex<double>;
- using Tour = Tour<double>;
+
+ using Map = Graph<Vertex<Edge<double>, double>, Edge<double>, double>;
public static class TSP
{
static Tour BestTour = null;
- static Graph<double> Map;
+ static Map Map;
- public static Tour BruteForce(Graph<double> map, int init)
+ public static Tour BruteForce(Map map, int init)
{
Map = map;
Tour intialTour = new Tour(map.Vertices);