14 lines
274 B
C#
14 lines
274 B
C#
namespace Graph
|
|
{
|
|
public struct Edge
|
|
{
|
|
public Node neighbor { get; }
|
|
public float weight { get; }
|
|
public Edge(Node neighbor, float weight)
|
|
{
|
|
this.neighbor = neighbor;
|
|
this.weight = weight;
|
|
}
|
|
}
|
|
}
|