PIBD-14_Boyko_M_S_Cursach_DFS/Cursach/Manager.cs
2024-05-16 00:37:58 +04:00

22 lines
491 B
C#

using System.Reflection.Metadata;
using Cursach.Parameters;
using Cursach.Realisations;
using Cursach.States;
namespace Cursach;
public class Manager(BFSParameters parameter)
{
public BFS BFS = new(parameter);
public StatesManager StartBFS()
{
StatesManager statesManager = new();
statesManager.AddState(BFS.GetState());
while (BFS.Step())
{
statesManager.AddState(BFS.GetState());
}
return statesManager;
}
}