Added new setNextElement
Added method for retrieving in-edges to a vertex