22 lines
491 B
C#
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;
|
|
}
|
|
} |