2022-05-05 16:12:40 +02:00
|
|
|
|
namespace Graph
|
2022-05-05 15:49:28 +02:00
|
|
|
|
{
|
|
|
|
|
public struct Edge
|
|
|
|
|
{
|
|
|
|
|
public Node neighbor { get; }
|
2022-05-05 16:23:00 +02:00
|
|
|
|
public ushort weight { get; }
|
|
|
|
|
public Edge(Node neighbor, ushort weight)
|
2022-05-05 15:49:28 +02:00
|
|
|
|
{
|
|
|
|
|
this.neighbor = neighbor;
|
2022-05-05 16:23:00 +02:00
|
|
|
|
this.weight = weight;
|
2022-05-05 15:49:28 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|