dgl.as_immutable_graph

dgl.as_immutable_graph(hg)[source]

Convert a DGLHeteroGraph with one node and edge type into a DGLGraph.

DEPRECATED: DGLGraph and DGLHeteroGraph have been merged. This function will

do nothing and can be removed safely in all cases.