Skip to main content
Version: 2026R1

EntitySet

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

Base class for entity sets.

Attributes

NameDescription
EntitySet.activeActive status of object
EntitySet.enabledWhether this object is currently enabled or not
EntitySet.idID of object
EntitySet.is_dict_itemSpecifies whether the object is an item of a dict
EntitySet.is_list_itemSpecifies whether the object is an item of a list
EntitySet.link_pathRoot path of the current node in the tree for links to this object
EntitySet.nameName of object
EntitySet.parentParent object in tree
EntitySet.root_pathRoot path of the current node in the tree
EntitySet.sizeNumber of entities
EntitySet.statusStatus of the object
EntitySet.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes.
EntitySet.uidUID of object
EntitySet.vertexThrows an error if the object has been removed from the graph

Methods

NameDescription
EntitySet.add(entity)Add entity to the set
EntitySet.clear()
EntitySet.find_parent(type)Function steps up the tree and returns the first parent with given type
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(entity)Remove entity from the set
EntitySet.serialize_name_and_id()Helper function to serialize name and ID
EntitySet.update()
EntitySet.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node