(self)
return hashlib.md5(id_string.encode('utf-8')).hexdigest()
Generate ID for node/edge.

        Returns:
            MD5 hash (str): MD5 hash of the provided label.
Generate ID for node/edge.
Generate ID for node / edge .
def _generate_id(self):
        """Generate ID for node/edge.

        Returns:
            MD5 hash (str): MD5 hash of the provided label.
        """

        id_string = self.attributes.get('id', self.label)
        return hashlib.md5(id_string.encode('utf-8')).hexdigest()
def _generate_id ( self ) : id_string = self . attributes . get ( 'id' , self . label ) return hashlib . md5 ( id_string . encode ( 'utf-8' ) ) . hexdigest ( )