public override string ToString() { var str = string.Format("Edge {2} [{0} - {1}]: ", p1_ID, p2_ID, GetHashCode()); if (Faces == null) { str += "has no faces"; } else { foreach (var face in Faces) { str += face.ToString(); if (face != Faces.Last <int>()) { str += ", "; } } } return(str); }