public bool AddNext(PathNode next) { if (HasNext(next)) { return(false); } else { nextNodes.Add(next); next.AddPrevious(this); return(true); } }