dgl.to_simple_graph

dgl.to_simple_graph(g)[source]

将图转换为没有多重边的简单图。

已弃用:已重命名为 dgl.to_simple

Parameters:

g (DGLGraph) – The input graph.

Returns:

一个简单的图表。

Return type:

DGLGraph

注释

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.