diff options
Diffstat (limited to 'src/CS340.TSP/City.cs')
-rw-r--r-- | src/CS340.TSP/City.cs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/CS340.TSP/City.cs b/src/CS340.TSP/City.cs deleted file mode 100644 index 4889bdb..0000000 --- a/src/CS340.TSP/City.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using Graph; -using Interfaces; - -namespace TSP -{ - using INode = INode<double>; - using IVertex = IVertex<Edge<double>, double>; - using Road = Edge<double>; - using Vertex = Vertex<Edge<double>, double>; - - public partial class City : Vertex, IVertex, IComparable<INode> - { - - public new double Key { get => this[Parent].Weight; } - - public Coordinate Location { get; set; } - - public City() { } - - public City(int id) => - Id = id; - - public City(int id, List<Road> edges) : this(id) => - Edges = edges; - - public City(IVertex city) : this(city.Id, city.Edges) => - Parent = city.Parent; - - public City(IVertex city, Coordinate location) : this(city) => - Location = location; - - public City(City city) : this(city, city.Location) { } - } -}
\ No newline at end of file |