Add depth first search simulation