Added fix for large nodes hiding the self-edges