PIBD-14_Boyko_M_S_Cursach_DFS/Cursach/States/State.cs

19 lines
503 B
C#
Raw Normal View History

2024-05-16 00:37:58 +04:00
using Cursach.Realisations;
using ProtoBuf;
namespace Cursach.States;
[ProtoContract]
[Serializable]
public class State()
{
[ProtoMember(1)] public List<Node> visited = [];
[ProtoMember(2)] public List<Node> queue = [];
[ProtoMember(3)] public AdjacencyList AdjacencyList = new();
public State(AdjacencyList adjacencyList, List<Node> visited, List<Node> queue) : this()
{
this.visited = visited;
this.queue = queue;
AdjacencyList = adjacencyList;
}
}