A Matrix Factorization Approach to Graph Compression