After I used metis to partition the papers100M, I found that I could not use the command
subg, node_feat, _, gpb, _, node_type, _ = dgl.distributed.load_partition(part_config, rank)
to read correctly, and the error message was
loading partitions
Traceback (most recent call last):
File "graph2bin.py", line 197, in <module>
subg, node_feat, node_type = readGraph(rank,dataPath,dataName)
File "graph2bin.py", line 106, in readGraph
subg, node_feat, _, gpb, _, node_type, _ = dgl.distributed.load_partition(part_config, rank)
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/distributed/partition.py", line 202, in load_partition
graph = load_graphs(partition_path)[0][0]
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/data/graph_serialize.py", line 195, in load_graphs
return load_graph_v2(filename, idx_list)
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/data/graph_serialize.py", line 207, in load_graph_v2
return [gdata.get_graph() for gdata in heterograph_list], label_dict
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/data/graph_serialize.py", line 207, in <listcomp>
return [gdata.get_graph() for gdata in heterograph_list], label_dict
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/data/heterograph_serialize.py", line 79, in get_graph
return DGLGraph(gidx, ntype_names, etype_names, nframes, eframes)
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/heterograph.py", line 124, in __init__
self._init(gidx, ntypes, etypes, node_frames, edge_frames)
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/heterograph.py", line 178, in _init
self._canonical_etypes = make_canonical_etypes(
File "/home/xxx/miniconda3/envs/graphtest/lib/python3.8/site-packages/dgl/heterograph.py", line 6370, in make_canonical_etypes
raise DGLError(
dgl._ffi.base.DGLError: Length of edge type list must match the number of edges in the metagraph. 0 vs 1
Also, not every partition produces this error, so Iām very confused, and I want to know how to solve the problem.