added getAdjacentNodes()