ComfyUI > Nodes > Basic data handling > is superset

ComfyUI Node: is superset

Class Name

Basic data handling: SetIsSuperset

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 superset Description

SetIsSuperset node checks if one set fully contains another, simplifying set comparison tasks.

is superset:

The SetIsSuperset node is designed to determine whether one set is a superset of another. This means it checks if the first set contains all the elements of the second set. This functionality is particularly useful when you need to verify that a collection of items (set1) encompasses another collection (set2) entirely. By using this node, you can easily ascertain the hierarchical relationship between two sets, which can be beneficial in scenarios where you need to ensure that a larger dataset includes all elements of a smaller dataset. This node simplifies the process of set comparison, making it accessible even to those without a technical background.

is superset Input Parameters:

set1

set1 is the first input parameter representing the set you want to check as a potential superset. It is crucial because it serves as the reference set against which the second set (set2) is compared. There are no specific minimum, maximum, or default values for this parameter, as it can be any set of elements. The effectiveness of the node's execution depends on the elements contained within this set, as it determines whether all elements of set2 are present within it.

set2

set2 is the second input parameter representing the set you want to check against set1. This parameter is essential because it contains the elements that need to be present in set1 for the latter to be considered a superset. Like set1, there are no specific minimum, maximum, or default values for this parameter, as it can be any set of elements. The node's result hinges on whether all elements of set2 are found within set1.

is superset Output Parameters:

is_superset

The is_superset output parameter is a boolean value that indicates whether set1 is a superset of set2. If set1 contains all elements of set2, this parameter will return True; otherwise, it will return False. This output is crucial for understanding the relationship between the two sets, allowing you to confirm whether the first set fully encompasses the second set. The boolean nature of this output makes it straightforward to interpret and use in further logical operations or decision-making processes.

is superset Usage Tips:

  • Use the SetIsSuperset node when you need to verify that a dataset includes all elements of another dataset, which can be particularly useful in validation processes or when ensuring data integrity.
  • Consider using this node in conjunction with other set operations, such as SetIsSubset or SetIntersection, to gain a comprehensive understanding of the relationships between multiple sets.

is superset Common Errors and Solutions:

TypeError: 'set1' and 'set2' must be sets

  • Explanation: This error occurs when the inputs provided to set1 or set2 are not of the set data type.
  • Solution: Ensure that both set1 and set2 are properly defined as sets before passing them to the node. You can convert lists or other iterable types to sets using the set() function in Python.

ValueError: Input sets cannot be None

  • Explanation: This error arises when either set1 or set2 is not provided or is set to None.
  • Solution: Make sure to provide valid sets for both set1 and set2. Check your input data to confirm that neither of the sets is missing or incorrectly initialized.

is superset 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 superset