Commit for DE
This commit is contained in:
parent
204aea50c1
commit
69ad981e94
@ -30,6 +30,14 @@ public class BFS
|
||||
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()
|
||||
{
|
||||
if (queue.Count > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user