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)
| 1397 | |
| 1398 | |
| 1399 | def 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 | |
| 1426 | def laplacian_lambda_max(g): |
nothing calls this directly
no test coverage detected