Added id for future use

This commit is contained in:
C9Glax 2022-11-01 05:09:01 +01:00
parent 7e8d8e2a74
commit a1e3a60c48

View File

@ -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;
}
}
}