test networkx to csr