remove assert preventing self edges