Beispiel #1
0
        public override string ToString()
        {
            string result     = "";
            string neighbours = "";

            foreach (var node in Neighbours)
            {
                if (node.Key == null)
                {
                    continue;
                }
                neighbours += Neighbours.IndexOf(node) + ": " + node.Key.Name + ", ";
            }
            result = String.Format("Name: {0} - {1}", Name, neighbours);
            return(result);
        }