Commit for DE
This commit is contained in:
parent
204aea50c1
commit
69ad981e94
@ -29,6 +29,14 @@ public class BFS
|
|||||||
{
|
{
|
||||||
return new State(adjacencyList, new List<Node>(visited), new List<Node>(queue));
|
return new State(adjacencyList, new List<Node>(visited), new List<Node>(queue));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetState(State state)
|
||||||
|
{
|
||||||
|
|
||||||
|
adjacencyList = state.AdjacencyList;
|
||||||
|
visited = state.visited;
|
||||||
|
queue = new Queue<Node>(state.queue);
|
||||||
|
}
|
||||||
|
|
||||||
public bool Step()
|
public bool Step()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user