# python_study **Repository Path**: thinkofai/python_study ## Basic Information - **Project Name**: python_study - **Description**: No description available - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README hash(node) 返回node的ID的哈希值 node[key] 返回node的属性值,没有此属性就返回None node[key] = value 设定node的属性值 del node[key] 删除属性值,如果不存在此属性报KeyError len(node) 返回node属性的数量 dict(node) 返回node所有的属性 walk(node) 返回一个生成器且只包含一个node labels() 返回node的标签的集合 has_label(label) node是否有这个标签 add_label(label) 给node添加标签 remove_label(label) 删除node的标签 clear_labels() 清楚node的所有标签 update_labels(labels) 添加多个标签,注labels为可迭代的 其中连接的属性有: hash(relationship) 返回一个关系的hash值 relationship[key] 返回关系的属性值 relationship[key] = value 设定关系的属性值 del relationship[key] 删除关系的属性值 len(relationship) 返回关系的属性值数目 dict(relationship) 以字典的形式返回关系的所有属性 walk(relationship) 返回一个生成器包含起始node、关系本身、终止node type() 返回关系type