mindspore_gl.graph.CsrAdj ========================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/graphlearning/blob/master/docs/api_python/graph/mindspore_gl.graph.CsrAdj.rst :alt: 查看源文件 .. py:class:: mindspore_gl.graph.CsrAdj(indptr, indices) 构建CSR矩阵的nametuple。 参数: - **indptr** (numpy.ndarry) - CSR矩阵的indptr。 - **indices** (numpy.ndarry) - CSR矩阵的indices。 异常: - **TypeError** - 如果 `indptr` 或 `indices` 的类型不是numpy.ndarray。 - **TypeError** - 如果 `indptr` 或 `indices` 的类型不是一维数组。