Пример #1
0
 private void CleanUpFrontier()
 {
     while (!Frontier.Empty() && _explored.Contains(Frontier.Peek().State))
     {
         Frontier.Remove();
     }
 }
Пример #2
0
 protected override bool IsFrontierEmpty()
 {
     CleanUpFrontier();
     return(Frontier.Empty());
 }
Пример #3
0
 protected override bool IsFrontierEmpty()
 {
     return(Frontier.Empty());
 }