filters graph to only include nodes with high degree