Added getAdjacent function (returns all adjacencies the specified node
index has in the specified graph).