How to change a graph into immutable graph

Just like the title.

I created a new graph with several adding command. After that, I would like to do a Neighbour sampling but failed with the error:“This loader only support read-only graphs.”. I could not find any related information in DGL Docs.

Any help?

Thank you~

The readonly api would transform a mutable graph into immutable graph.


1 Like