> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# EntitySet

### *class* compolyx.EntitySet(graph, obj, parent=None)

Base class for entity sets.

### Attributes

| Name | Description |
| - | - |
| [`EntitySet.active`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.active) | Active status of object |
| [`EntitySet.enabled`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.enabled) | Whether this object is currently enabled or not |
| [`EntitySet.id`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.id) | ID of object |
| [`EntitySet.is_dict_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.is_dict_item) | Specifies whether the object is an item of a dict |
| [`EntitySet.is_list_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.is_list_item) | Specifies whether the object is an item of a list |
| [`EntitySet.link_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.link_path) | Root path of the current node in the tree for links to this object |
| [`EntitySet.name`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.name) | Name of object |
| [`EntitySet.parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.parent) | Parent object in tree |
| [`EntitySet.root_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.root_path) | Root path of the current node in the tree |
| [`EntitySet.size`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.size) | Number of entities |
| [`EntitySet.status`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.status) | Status of the object |
| [`EntitySet.status_changed`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.status_changed) | Boolean flag which is set to true in C++ when up-to-date status of object changes. |
| [`EntitySet.uid`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.uid) | UID of object |
| [`EntitySet.vertex`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.vertex) | Throws an error if the object has been removed from the graph |

### Methods

| Name | Description |
| - | - |
| [`EntitySet.add`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.add)(entity) | Add entity to the set |
| [`EntitySet.clear`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.clear)() | |
| [`EntitySet.find_parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.find_parent)(type) | Function steps up the tree and returns the first parent with given type |
| [`EntitySet.obj_exists`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.obj_exists)() | Checks if \_\_obj still references the C++ object (i.e. has not been reset to None by self.\_delete) and exists in the graph |
| [`EntitySet.remove`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.remove)(entity) | Remove entity from the set |
| [`EntitySet.serialize_name_and_id`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.serialize_name_and_id)() | Helper function to serialize name and ID |
| [`EntitySet.update`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.update)() | |
| [`EntitySet.visit`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.EntitySet.visit)(visitor) | Walk through the tree and let the visitor perform action on every descendant node |
