* 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
datadimension matches that ofindicesindptrlast value matchesdataandindicesdimensionsindptrstarts from 0 and non-decreasingnum_nodesmatches matrix dim