diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-04-20 12:56:54 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-04-20 12:56:54 -0500 |
commit | 9891f2e94aef0e8f197d73dcc64eb9dac804f52a (patch) | |
tree | 2c58d622ebf56bbcf36510355de67d42d4415814 | |
parent | 559a73d6c139484eef5d16077de13acede36bf63 (diff) |
moved TSP to a classlib
-rw-r--r-- | src/CS340.TSP/CS340.TSP.csproj | 1 | ||||
-rw-r--r-- | src/CS340.TSP/Program.cs | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/CS340.TSP/CS340.TSP.csproj b/src/CS340.TSP/CS340.TSP.csproj index d3419d7..08af2ae 100644 --- a/src/CS340.TSP/CS340.TSP.csproj +++ b/src/CS340.TSP/CS340.TSP.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <OutputType>Exe</OutputType> <TargetFramework>net5.0</TargetFramework> </PropertyGroup> diff --git a/src/CS340.TSP/Program.cs b/src/CS340.TSP/Program.cs index f1aaba7..b2f6811 100644 --- a/src/CS340.TSP/Program.cs +++ b/src/CS340.TSP/Program.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.IO; using Graph; using Graph.IO; @@ -24,7 +25,7 @@ namespace TSP // vertex.Edges.FirstOrDefault(edge => edge.V == vertex.Parent).Weight)); Tour bruteForce = TSP.BruteForce(graph, 0); - Console.WriteLine(bruteForce); + Debug.WriteLine(bruteForce); // mst.Vertices.ForEach(vertex => // { // Console.Write($"{vertex.Id}"); @@ -41,6 +42,6 @@ namespace TSP class ConsoleWriter : IFileWriter { public void WriteAllLines(string[] lines) => - Array.ForEach(lines, line => Console.WriteLine(line)); + Array.ForEach(lines, line => Debug.WriteLine(line)); } } |