def change_node(self, node: dict):
    "\n        change node method. Changes attributes provided in node dictionary\n\n        :param dict node: dictionary of node's data\n        "
    if (node.get('id') is not None):
        if (node['id'] not in self._nodes):
            raise ValueError(('tried to change non-existing node %s' % node['id']))
    else:
        raise ValueError('no id for node provided')
    id_ = node['id']
    del node['id']
    for attribute in node:
        self._nodes[id_][attribute] = node[attribute]
change node method. Changes attributes provided in node dictionary

:param dict node: dictionary of node's data
def change_node(self, node: dict):
    "\n        change node method. Changes attributes provided in node dictionary\n\n        :param dict node: dictionary of node's data\n        "
    if (node.get('id') is not None):
        if (node['id'] not in self._nodes):
            raise ValueError(('tried to change non-existing node %s' % node['id']))
    else:
        raise ValueError('no id for node provided')
    id_ = node['id']
    del node['id']
    for attribute in node:
        self._nodes[id_][attribute] = node[attribute]