• Piotr Bielak's avatar
    Allow returning edge indices from random walk (#139) · cc4696bd
    Piotr Bielak authored
    This commit adds an optional argument in the `random_walk` function,
    namely `return_edge_indices`. The default behaviour is not changed, but
    if a user wants to directly use the edges visited by the random walker,
    we can return the indices of those edges by setting
    `return_edge_indices` to `True`. New cases are also added to the test
    suite.
    cc4696bd
rw.py 2.26 KB