summaryrefslogtreecommitdiffstats
path: root/Edge.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Edge.cs')
-rw-r--r--Edge.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Edge.cs b/Edge.cs
index 9b31169..b1aa79f 100644
--- a/Edge.cs
+++ b/Edge.cs
@@ -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)
{