Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有数百万条边的无向边列表。
我正在使用igraph从文件中读取我的图形数据。我不确定如何将边缘列表转换为CSR(压缩稀疏行)。
CSR
igraph 支持两种稀疏矩阵格式。您可以在每个使用中获得邻接矩阵
igraph_get_adjacency_sparse()
和
igraph_get_sparsemat()
它们使用压缩列 (CSC) 格式。
http://igraph.org/c/doc/ch07.html#igraph-SparseMatrices
http://igraph.org/c/doc/ch07.html#igraph-SparseMatrices2