- // Update vodGraph
- int currChoice = choiceCounter - 1;
- // Adjust currChoice with modulo
- currChoice = currChoice >= 0 ? currChoice % (choices.length -1) : currChoice;
- if (currChoice < 0 || choices[currChoice] == -1 ||
- prevChoiceValue == choices[currChoice]) {
- // When current choice is 0, previous choice could be -1
-// updateVODGraph(prevChoiceValue, choices[currChoice]);
- // Update the state ID variables
- stateId = search.getStateId();
- currVisitedStates.add(stateId);
- return;
- }
- // When current choice is 0, previous choice could be -1
- updateVODGraph(prevChoiceValue, choices[currChoice]);
- // Current choice becomes previous choice in the next iteration
- prevChoiceValue = choices[currChoice];