dgl.to_simple_graphΒΆ
-
dgl.
to_simple_graph
(g)[source]ΒΆ Convert the graph to a simple graph with no multi-edge.
DEPRECATED: renamed to dgl.to_simple
Notes
This function discards the batch information. Please use
dgl.DGLGraph.set_batch_num_nodes()
anddgl.DGLGraph.set_batch_num_edges()
on the transformed graph to maintain the information.