def METHOD_NAME(
    self,
    *,
    link_type: LinkType,
    lhs_node: Any,
    rhs_node: Any,
    remove_lhs_node: bool,
    remove_rhs_node: bool,
):
    assert link_type in self._links
    assert isinstance(lhs_node.mid, MID), lhs_node
    assert isinstance(rhs_node.mid, MID), rhs_node
    assert lhs_node.mid in self._links[link_type]
    self._links[link_type][lhs_node.mid].remove(rhs_node.mid)
    self._links_reverse[link_type][rhs_node.mid].remove(lhs_node.mid)
    if remove_lhs_node:
        self.remove_node_by_mid(lhs_node.mid)
    if remove_rhs_node:
        self.remove_node_by_mid(rhs_node.mid)