had to change compiler flags in 3 locations
edgecount could be a random huge value
cls changed naming of getEdges