def add_leaf(self, id_: str, value: list, parents: dict):
    "\n        add leaf from simplified function:\n\n        :param str id_: id of the node\n        :param list value: list of node's values\n        :param dict parents: dictionary of parents for the node\n        "
    self.add_node({'id': id_, 'value': value, 'parents': parents})
add leaf from simplified function:

:param str id_: id of the node
:param list value: list of node's values
:param dict parents: dictionary of parents for the node
def add_leaf(self, id_: str, value: list, parents: dict):
    "\n        add leaf from simplified function:\n\n        :param str id_: id of the node\n        :param list value: list of node's values\n        :param dict parents: dictionary of parents for the node\n        "
    self.add_node({'id': id_, 'value': value, 'parents': parents})