AStar/Graph/Edge.cs

14 lines
276 B
C#

namespace Graph
{
public struct Edge
{
public Node neighbor { get; }
public double weight { get; }
public Edge(Node neighbor, double weight)
{
this.neighbor = neighbor;
this.weight = weight;
}
}
}