Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Deep(int i, int[] resArray)
- {
- Stack<int> myStack = new Stack<int>();
- myStack.Push(i);
- int walkN = 0;
- while (myStack.Count != 0)
- {
- int tmp = myStack.Pop();
- if (!MasCheck(resArray, tmp))
- {
- resArray[walkN] = tmp;
- UsuallyStorage.GetCCircle(tmp).ChangeNumero(walkN + 1);
- foreach (int nei in UsuallyStorage.GetCCircle(tmp).Neighbours)
- {
- /*if (!MasCheck(resArray, nei))
- {*/
- myStack.Push(nei);
- //}
- }
- walkN++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement