[#57529606] added a seed sampler based on weighted degree distribution, made degree distribution macro more general