Пример #1
0
        public Node(string key, object data, AdjacencyList neighbors)
        {
            Key  = key;
            Data = data;

            if (neighbors == null)
            {
                Neighbors = new AdjacencyList();
            }
            else
            {
                Neighbors = neighbors;
            }
        }
Пример #2
0
        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;
            }
        }