Don't call checkClass for lightweight edges

Don't call checkClass for lightweight edges in remove().