def disconnect(self, other=None, source=True, destination=True):
    'Disconnect self from `other`\n\n        Arguments:\n            other (Plug, optional): If none is provided, disconnect everything\n\n        Example:\n            >>> node1 = createNode("transform")\n            >>> node2 = createNode("transform")\n            >>> node2["tx"].connection() is None\n            True\n            >>> node2["ty"].connection() is None\n            True\n            >>>\n            >>> node2["tx"] << node1["tx"]\n            >>> node2["ty"] << node1["ty"]\n            >>> node2["ty"].connection() is None\n            False\n            >>> node2["tx"].connection() is None\n            False\n            >>>\n            >>> node2["tx"].disconnect(node1["tx"])\n            >>> node2["ty"].disconnect()\n            >>> node2["tx"].connection() is None\n            True\n            >>> node2["ty"].connection() is None\n            True\n\n        '
    other = getattr(other, '_mplug', None)
    if (not getattr(self._modifier, 'isDone', True)):
        mod = self._modifier
        mod.disconnect(self._mplug, other, source, destination)
    else:
        mod = DGModifier()
        mod.disconnect(self._mplug, other, source, destination)
        mod.doIt()
Disconnect self from `other`

Arguments:
    other (Plug, optional): If none is provided, disconnect everything

Example:
    >>> node1 = createNode("transform")
    >>> node2 = createNode("transform")
    >>> node2["tx"].connection() is None
    True
    >>> node2["ty"].connection() is None
    True
    >>>
    >>> node2["tx"] << node1["tx"]
    >>> node2["ty"] << node1["ty"]
    >>> node2["ty"].connection() is None
    False
    >>> node2["tx"].connection() is None
    False
    >>>
    >>> node2["tx"].disconnect(node1["tx"])
    >>> node2["ty"].disconnect()
    >>> node2["tx"].connection() is None
    True
    >>> node2["ty"].connection() is None
    True
def disconnect(self, other=None, source=True, destination=True):
    'Disconnect self from `other`\n\n        Arguments:\n            other (Plug, optional): If none is provided, disconnect everything\n\n        Example:\n            >>> node1 = createNode("transform")\n            >>> node2 = createNode("transform")\n            >>> node2["tx"].connection() is None\n            True\n            >>> node2["ty"].connection() is None\n            True\n            >>>\n            >>> node2["tx"] << node1["tx"]\n            >>> node2["ty"] << node1["ty"]\n            >>> node2["ty"].connection() is None\n            False\n            >>> node2["tx"].connection() is None\n            False\n            >>>\n            >>> node2["tx"].disconnect(node1["tx"])\n            >>> node2["ty"].disconnect()\n            >>> node2["tx"].connection() is None\n            True\n            >>> node2["ty"].connection() is None\n            True\n\n        '
    other = getattr(other, '_mplug', None)
    if (not getattr(self._modifier, 'isDone', True)):
        mod = self._modifier
        mod.disconnect(self._mplug, other, source, destination)
    else:
        mod = DGModifier()
        mod.disconnect(self._mplug, other, source, destination)
        mod.doIt()