Graph sampling

General macro(s) for sampling a bipartite graph in a breadth-first manner