made getIncoming work with sets and vectors
exporting reverse function