private void CleanUpFrontier() { while (!Frontier.Empty() && _explored.Contains(Frontier.Peek().State)) { Frontier.Remove(); } }
protected override bool IsFrontierEmpty() { CleanUpFrontier(); return(Frontier.Empty()); }
protected override bool IsFrontierEmpty() { return(Frontier.Empty()); }