示例#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());
 }