This code implements a variation on Random Walk With Restarts (RWR) within a directed graph. In this variant, a random walker restarts to an edge in a "restart set" of edges rather than nodes.
For an application of this procedure, please see https://doi.org/10.1093/bioinformatics/btz360