Fixes issue with graph with only singles