Change logic to work with unsigned int *Graph

Should proceed with rows 106, 110, 125, 129