diff options
Diffstat (limited to 'Edge.cs')
-rw-r--r-- | Edge.cs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,12 +1,13 @@ using System; +using Interfaces; namespace Graph { - public struct Edge<T> where T : IComparable<T> + public struct Edge<T> : IEdge<T> where T : IComparable<T> { - public int U { get; } - public int V { get; } - public T Weight { get; } + public int U { get; set; } + public int V { get; set; } + public T Weight { get; set; } public Edge(int u, int v, T weight) { |