How do we read in the RMAT edgelist into DGL?


I’m using this gcn model:

I have generated edgelist using PaRMAT

How does DGL read in this edgelist? Can you point me to resources on this? My edgelist is in a text file.


You can use g.add_nodes(num_nodes) and g.add_edges(src_list, dst_list). Does this solve your question?

DGLGraph supports scipy sparse matrix as input. You can convert the RMAT graph into scipy sparse matrix first and then pass it to DGLGraph.