diff options
Diffstat (limited to 'src/CS340.Plotter/Program.cs')
-rw-r--r-- | src/CS340.Plotter/Program.cs | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/CS340.Plotter/Program.cs b/src/CS340.Plotter/Program.cs index 9e9a52a..cfffac2 100644 --- a/src/CS340.Plotter/Program.cs +++ b/src/CS340.Plotter/Program.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; +using System.Text; +using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; using Graph; @@ -22,33 +24,7 @@ namespace Plotter Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Run(); Application.Run(new Plot()); } - - static void Run() - { - foreach (string file in Directory.GetFiles("graphs/")) - { - 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)); - - // mst.Vertices.ForEach(vertex => - // { - // Console.Write($"{vertex.Id}"); - // vertex.Edges.ForEach(edge => Console.Write($" {edge.V} {edge.Weight.ToString("F1")}")); - // Console.WriteLine(); - // }); - // Console.WriteLine(mst.Vertices - // .Sum(vertex => vertex.Edges - // .FirstOrDefault(edge => edge.V == vertex.Parent).Weight)); - } - } } } |