public void AddToOpen(Point nodeRecord) { int index = this.Open.BinarySearch(nodeRecord); if (index < 0) { this.Open.Insert(~index, nodeRecord); } }
public Point SearchInOpen(Point nodeRecord) { return this.Open.FirstOrDefault(n => n.Equals(nodeRecord)); }
public void RemoveFromOpen(Point nodeRecord) { this.Open.Remove(nodeRecord); }
public void Replace(Point nodeToBeReplaced, Point nodeToReplace) { this.Open.Remove(nodeToBeReplaced); this.AddToOpen(nodeToReplace); }