GetNextNode swaped for getNeighbourNodes. More general, works for trees and arrays.