Debugging memory leaks/segfaults with greater sized graphs