I need obtain the n most relevents nodes by degree, and its m most relevants neighbors. I found this solution (maybe isn't the optimal, but is working):
here, n and m are desired nodes count And asumme that exist in graph catalog a graph called test,...