.. _api-transform: dgl.transform ================================= .. automodule:: dgl.transform Common algorithms on graphs. .. autosummary:: :toctree: ../../generated/ line_graph khop_adj khop_graph reverse to_simple_graph to_bidirected laplacian_lambda_max knn_graph segmented_knn_graph add_self_loop remove_self_loop metapath_reachable_graph compact_graphs to_block to_simple in_subgraph out_subgraph remove_edges as_immutable_graph as_heterograph