Hello, I want a graph with all three sparse adjacency matrix.
I created three kind of sparse adjacency matrix (coo, csr, csc) and save it on distk.
When I load the graph again I find the graph only contains coo format.
Does anyone else have this problem ?
g2 = dgl.heterograph({
... ('user', 'follow', 'user'): ([0, 1, 1, 2, 3], [1, 2, 3, 0, 0]),
... ('user', 'view', 'item'): ([0, 0, 1, 2, 3, 3], [0, 1, 1, 2, 2, 1]),
... ('item', 'viewed-by', 'user'): ([0, 1, 1, 2, 2, 1], [0, 0, 1, 2, 3, 3]) })
>>> g2.formats()
{'created': ['coo'], 'not created': ['csr', 'csc']}
>>> g3 = g2.formats(['coo', 'csr', 'csc'])
>>> g3.create_formats_()
>>> g3.formats()
{'created': ['coo', 'csr', 'csc'], 'not created': []}
>>> dgl.save_graphs('tmp.dgl', g3)
>>> dgl.load_graphs('tmp.dgl')[0][0].formats()
{'created': ['coo'], 'not created': ['csr', 'csc']}