MCPcopy
hub / github.com/dmlc/dgl / to_simple_graph

Function to_simple_graph

python/dgl/transforms/functional.py:1399–1423  ·  view source on GitHub ↗

Convert the graph to a simple graph with no multi-edge. DEPRECATED: renamed to dgl.to_simple Parameters ---------- g : DGLGraph The input graph. Returns ------- DGLGraph A simple graph. Notes ----- This function discards the batch informat

(g)

Source from the content-addressed store, hash-verified

1397
1398
1399def to_simple_graph(g):
1400 """Convert the graph to a simple graph with no multi-edge.
1401
1402 DEPRECATED: renamed to dgl.to_simple
1403
1404 Parameters
1405 ----------
1406 g : DGLGraph
1407 The input graph.
1408
1409 Returns
1410 -------
1411 DGLGraph
1412 A simple graph.
1413
1414 Notes
1415 -----
1416
1417 This function discards the batch information. Please use
1418 :func:`dgl.DGLGraph.set_batch_num_nodes`
1419 and :func:`dgl.DGLGraph.set_batch_num_edges` on the transformed graph
1420 to maintain the information.
1421 """
1422 dgl_warning("dgl.to_simple_graph is renamed to dgl.to_simple in v0.5.")
1423 return to_simple(g)
1424
1425
1426def laplacian_lambda_max(g):

Callers

nothing calls this directly

Calls 2

dgl_warningFunction · 0.85
to_simpleFunction · 0.85

Tested by

no test coverage detected