dgl.transform.to_simple_graph

dgl.transform.to_simple_graph(g)[source]

Convert the graph to a simple graph with no multi-edge.

The function generates a new readonly graph with no node/edge feature.

Parameters:g (DGLGraph) – The input graph.
Returns:A simple graph.
Return type:DGLGraph