summaryrefslogtreecommitdiffstats
path: root/src/CS340.TSP/Road.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/CS340.TSP/Road.cs')
-rw-r--r--src/CS340.TSP/Road.cs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/CS340.TSP/Road.cs b/src/CS340.TSP/Road.cs
deleted file mode 100644
index cc939e9..0000000
--- a/src/CS340.TSP/Road.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using Interfaces;
-
-namespace TSP
-{
- using IEdge = IEdge<double>;
- public class Road : IEdge, IComparable<IEdge>
- {
- public int U { get; set; }
- public int V { get; set; }
- public double Weight { get; set; }
-
- public Road() { }
-
- public Road(int u, int v, double weight)
- {
- U = u;
- V = v;
- Weight = weight;
- }
-
- public int CompareTo(IEdge edge) =>
- Weight.CompareTo(edge.Weight);
-
- public override string ToString() => $"{U} {V} {Weight}";
- }
-}