moscot.utils.subset_policy.SubsetPolicy.add_node¶ SubsetPolicy.add_node(node, only_existing=False)[source]¶ Add a node to the policy graph. Parameters: node (Tuple[TypeVar(K, bound= Hashable), TypeVar(K, bound= Hashable)]) – Node to add. only_existing (bool) – Whether to allow creating new nodes or only connect existing ones. Return type: SubsetPolicy[TypeVar(K, bound= Hashable)] Returns: : Remove the node, if present and return self.