public Node(string key, object data, AdjacencyList neighbors) { Key = key; Data = data; if (neighbors == null) { Neighbors = new AdjacencyList(); } else { Neighbors = neighbors; } }
public Node(string key, object data, double latitude, double longitude, AdjacencyList neighbors) { Key = key; Data = data; Latitude = latitude; Longitude = longitude; if (neighbors == null) { Neighbors = new AdjacencyList(); } else { Neighbors = neighbors; } }