Sparse Graph Recovery Code attempt