summaryrefslogtreecommitdiffstats
path: root/src/CS340.Plotter/Program.cs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-04-22 20:43:24 -0500
committerToby Vincent <tobyv13@gmail.com>2021-04-22 20:43:24 -0500
commit2a5db460a9d9091238f64c48a640aac7cbe40678 (patch)
treea57b990a664e0cf8501660fe2bc5c329fcd16848 /src/CS340.Plotter/Program.cs
parentf77dd59b7cfe5c8237e5410156dd940bc7d7b069 (diff)
implemented graph printing
Diffstat (limited to 'src/CS340.Plotter/Program.cs')
-rw-r--r--src/CS340.Plotter/Program.cs28
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));
- }
- }
}
}