(self, label='', attributes=None)
Initialize the base element object.

        Args:
            label (str): Node/Edge label to show in the UI.
            attributes (dict): Attributes to add to the node/edge.
Initialize the base element object.
Initialize the base element object .
def __init__(self, label='', attributes=None):
        """Initialize the base element object.

        Args:
            label (str): Node/Edge label to show in the UI.
            attributes (dict): Attributes to add to the node/edge.
        """
        self.label = label
        self.attributes = attributes or {}
        self.id = self._generate_id()
def __init__ ( self , label = '' , attributes = None ) : self . label = label self . attributes = attributes or { } self . id = self . _generate_id ( )