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-06 00:01:02 +02:00
|
|
|
|
public double weight { get; }
|
|
|
|
|
public Edge(Node neighbor, double 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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|