vermouth/molecule.py
def share_moltype_with(self, other):
        """
        Checks whether `other` has the same shape as this molecule.

        Parameters
        ----------
        other: Molecule

        Returns
        -------
        bool
            True iff other has the same shape as this molecule.
        """
        # TODO: Test the node attributes, the molecule attributes, and
        # the interactions.
        return nx.is_isomorphic(self, other)

        Checks whether `other` has the same shape as this molecule.

        Parameters
        ----------
        other: Molecule

        Returns
        -------
        bool
            True iff other has the same shape as this molecule.
        
Checks whether `other` has the same shape as this molecule.
Parameters

Molecule

Returns

bool
True iff other has the same shape as this molecule.
Checks whether ` other ` has the same shape as this molecule . Parameters Molecule Returns bool True iff other has the same shape as this molecule .
def share_moltype_with(self, other):
        return nx.is_isomorphic(self, other)
def share_moltype_with ( self , other ) : return nx . is_isomorphic ( self , other )
Checks whether `other` has the same shape as this molecule.
Checks whether ` other ` has the same shape as this molecule .
"""
        Checks whether `other` has the same shape as this molecule.

        Parameters
        ----------
        other: Molecule

        Returns
        -------
        bool
            True iff other has the same shape as this molecule.
        """ # TODO: Test the node attributes, the molecule attributes, and # the interactions.
self
other