Modified GNGGraph. Currently adding tests