public void AddEnd(T node) { this.size++; AstarNode <T> temp = this.head; while ((temp = temp.NextNode) != null) { ; } temp.setNextNode(new AstarNode <T>(node)); }
public void Remove(T node) { AstarNode <T> temp = this.head; if (this.Head.Data.Equals(node)) { this.Head.setNextNode(this.Head.NextNode); } while (temp.NextNode != null && !temp.NextNode.Data.Equals(node)) { temp = temp.NextNode; } if (temp.NextNode != null) { temp.setNextNode(temp.NextNode.NextNode); this.size--; } }