public Node(int id, long distanceFromSource, params TEdge[] edges) { Id = id; DistanceFromSource = distanceFromSource; Edges.AddRange(edges); }