namespace Graph { public class Edge { public ulong id { get; } public Node neighbor { get; } public float time { get; } public float distance { get; } public Edge(Node neighbor, float time, float distance, ulong? id) { this.neighbor = neighbor; this.time = time; this.distance = distance; this.id = (id != null) ? id.Value : 0; } } }