(merged_morphisms)
return morphisms
r"""
        Removes those morphisms which should appear in the diagram,
        but which have no relevance to object layout.

        Currently this removes "loop" morphisms: the non-identity
        morphisms with the same domains and codomains.
r"""
        Removes those morphisms which should appear in the diagram,
        but which have no relevance to object layout.
r Removes those morphisms which should appear in the diagram but which have no relevance to object layout .
def _drop_inessential_morphisms(merged_morphisms):
        r"""
        Removes those morphisms which should appear in the diagram,
        but which have no relevance to object layout.

        Currently this removes "loop" morphisms: the non-identity
        morphisms with the same domains and codomains.
        """
        morphisms = [m for m in merged_morphisms if m.domain != m.codomain]
        return morphisms
def _drop_inessential_morphisms ( merged_morphisms ) : morphisms = [ m for m in merged_morphisms if m . domain != m . codomain ] return morphisms