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

Parameters

g (DGLGraph) – The input graph.

Returns

A simple graph.

Return type

DGLGraph

Notes

This function discards the batch information. Please use dgl.DGLGraph.set_batch_num_nodes() and dgl.DGLGraph.set_batch_num_edges() on the transformed graph to maintain the information.