Function Funnel.RemoveBacktracking

RemoveBacktracking (List<GraphNode> nodes, int listStartIndex, int aroundIndex)

Removes backtracking in the path.

Private Static
void RemoveBacktracking (

List<GraphNode>

nodes

int

listStartIndex

int

aroundIndex

)

Removes backtracking in the path.

This can happen when the path goes A -> B -> C -> B -> D. This method will replace B -> C -> B with just B, when passed aroundIndex=C.