changed weight factor to double

This commit is contained in:
C9Glax 2022-05-06 00:01:02 +02:00
parent 7c61d9565b
commit 2b3a1bb5bc

View File

@ -3,8 +3,8 @@
public struct Edge
{
public Node neighbor { get; }
public ushort weight { get; }
public Edge(Node neighbor, ushort weight)
public double weight { get; }
public Edge(Node neighbor, double weight)
{
this.neighbor = neighbor;
this.weight = weight;