* Check SparseGraph * `data` dimension matches that of `indices` * `indptr` last value matches `data` and `indices` dimensions * `indptr` starts from 0 and non-decreasing * Check DenseGraph * Square matrix * `num_nodes` matches matrix dim