diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-04-22 01:43:55 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-04-22 01:54:54 -0500 |
commit | 7db1fdcfadad94aa7aea2acf36ec5fb84b27331f (patch) | |
tree | ba1014941f6a33bf96ee36ff19c1c8247ff809a5 /src/CS340.Plotter/Program.cs | |
parent | 292555a07b72ae1470c49ee2cee82db16d1c9cbd (diff) |
cleaned up weight and key system
Diffstat (limited to 'src/CS340.Plotter/Program.cs')
-rw-r--r-- | src/CS340.Plotter/Program.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/CS340.Plotter/Program.cs b/src/CS340.Plotter/Program.cs index 497ac32..9e9a52a 100644 --- a/src/CS340.Plotter/Program.cs +++ b/src/CS340.Plotter/Program.cs @@ -1,5 +1,3 @@ -using Graph; -using Graph.IO; using System; using System.Collections.Generic; using System.Diagnostics; @@ -7,11 +5,12 @@ using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; +using Graph; +using Graph.IO; using TSP; namespace Plotter { - using Map = Graph<Vertex<Edge<double>, double>, Edge<double>, double>; static class Program { /// <summary> @@ -31,15 +30,15 @@ namespace Plotter { foreach (string file in Directory.GetFiles("graphs/")) { - Map graph = GraphFile.Read(new FileReader(file)); + Tour bruteForce = Solve.BruteForce(file, 0); + Debug.WriteLine(bruteForce); + // Graph mst = graph.MST(0); // GraphFile.Print(mst, new ConsoleWriter()); // Console.WriteLine( // graph.Vertices.Sum(vertex => // vertex.Edges.FirstOrDefault(edge => edge.V == vertex.Parent).Weight)); - Tour bruteForce = TSP.TSP.BruteForce(graph, 0); - Debug.WriteLine(bruteForce); // mst.Vertices.ForEach(vertex => // { // Console.Write($"{vertex.Id}"); |