Initialized graph pointers in sparse matrices to null