Graph subset and plotting based on node degree