Added id for future use
This commit is contained in:
parent
7e8d8e2a74
commit
a1e3a60c48
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user