.. _api-transform:

dgl.transform
=================================

.. automodule:: dgl.transform

Common algorithms on graphs.

.. autosummary::
    :toctree: ../../generated/

    line_graph
    reverse
    to_simple_graph
    to_bidirected
    khop_adj
    khop_graph
    laplacian_lambda_max
    knn_graph
    segmented_knn_graph
    add_self_loop
    remove_self_loop
    metapath_reachable_graph
