.. _api-sampling:

dgl.sampling
=================================

.. automodule:: dgl.sampling

Random walk
------------------------------

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

    random_walk
    node2vec_random_walk
    pack_traces

Neighbor sampling
---------------------------

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

    sample_neighbors
    sample_neighbors_biased
    select_topk
    PinSAGESampler
