Adds getEdges and amount incrementing.