ComfyUI > Nodes > Basic data handling > is disjoint

ComfyUI Node: is disjoint

Class Name

Basic data handling: SetIsDisjoint

Category
Basic/SET
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

is disjoint Description

Determines if two sets are disjoint, providing a boolean result for element overlap.

is disjoint:

The SetIsDisjoint node is designed to determine whether two sets have no elements in common, effectively checking if they are disjoint. This node is particularly useful when you need to verify that two collections of items are completely separate, with no overlap. By leveraging this node, you can efficiently ascertain the independence of two sets, which can be crucial in scenarios where the uniqueness of elements across different groups is required. The node simplifies the process of checking disjointedness, making it accessible even to those without a technical background, and provides a straightforward boolean result indicating whether the sets share any common elements.

is disjoint Input Parameters:

set1

set1 is the first set to be compared. It serves as one of the two collections of elements that the node will evaluate for disjointedness. The function of this parameter is to provide the initial set of elements against which the second set will be checked. There are no specific minimum, maximum, or default values for this parameter, as it can be any set of elements. The impact of this parameter on the node's execution is direct, as it forms one half of the comparison.

set2

set2 is the second set to be compared against set1. This parameter provides the second collection of elements that will be evaluated to determine if there is any overlap with set1. Similar to set1, there are no specific constraints on the values it can hold, allowing for flexibility in the types of sets you can compare. The role of set2 is crucial as it completes the pair of sets being checked for disjointedness.

is disjoint Output Parameters:

is_disjoint

The is_disjoint output parameter is a boolean value that indicates whether the two input sets are disjoint. If the sets have no elements in common, this parameter will return True; otherwise, it will return False. This output is essential for understanding the relationship between the two sets, providing a clear and concise result that can be used to make decisions based on the independence of the sets.

is disjoint Usage Tips:

  • Use the SetIsDisjoint node when you need to ensure that two sets do not share any elements, which can be particularly useful in data validation or when managing distinct categories of items.
  • Consider using this node in scenarios where maintaining separate groups of elements is critical, such as in partitioning tasks or when ensuring that certain resources do not overlap.

is disjoint Common Errors and Solutions:

TypeError: 'set' object is not iterable

  • Explanation: This error occurs when the input provided is not a set or is incorrectly formatted, leading to issues during the comparison process.
  • Solution: Ensure that both set1 and set2 are properly defined as sets before passing them to the node. Double-check the input format to confirm that it adheres to the expected set structure.

ValueError: Input must be a set

  • Explanation: This error indicates that one or both of the inputs are not of the set type, which is required for the node to function correctly.
  • Solution: Verify that the inputs are indeed sets. You can convert lists or other iterable types to sets using the set() function in Python before using them as inputs for this node.

is disjoint Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

is disjoint