diff options
Diffstat (limited to 'src')
-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)); } } |