From a1e3a60c48751e14bcde8a89d6dd75ec07b15e1c Mon Sep 17 00:00:00 2001 From: C9Glax <13404778+C9Glax@users.noreply.github.com> Date: Tue, 1 Nov 2022 05:09:01 +0100 Subject: [PATCH] Added id for future use --- Graph/Edge.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Graph/Edge.cs b/Graph/Edge.cs index 0c35cbd..26faf6f 100644 --- a/Graph/Edge.cs +++ b/Graph/Edge.cs @@ -2,12 +2,21 @@ { public struct Edge { + public ulong id { get; } public Node neighbor { get; } public float weight { get; } public Edge(Node neighbor, float weight) { this.neighbor = neighbor; this.weight = weight; + this.id = 0; + } + + public Edge(Node neighbor, float weight, ulong id) + { + this.neighbor = neighbor; + this.weight = weight; + this.id = id; } } }