PIBD-14_Boyko_M_S_Cursach_DFS/Cursach/Manager.cs
2024-05-22 20:29:11 +04:00

21 lines
458 B
C#

using Cursach.Parameters;
using Cursach.Realisations;
using Cursach.States;
namespace Cursach;
public class Manager(BFSParameters parameter)
{
private BFS BFS = new(parameter);
public StatesStorage StartBFS()
{
StatesStorage statesStorage = new();
statesStorage.AddState(BFS.GetState());
while (BFS.Step())
{
statesStorage.AddState(BFS.GetState());
}
return statesStorage;
}
}