运行时依赖
安装命令
点击复制技能文档
图数据库工具包 图数据库操作工具包,重点支持Neo4j和Cypher。 快速开始 从 scripts.neo4j_client 导入 Neo4jClient client = Neo4jClient(uri="bolt://localhost:7687", user="neo4j", password="password") client.create_node("Person", {"name": "Alice", "age": 30}) client.create_node("Person", {"name": "Bob", "age": 25}) client.create_relationship("Alice", "Person", "KNOWS", "Bob", "Person", {"since": 2020}) results = client.query(""" MATCH (a:Person)-[r:KNOWS]->(b:Person) RETURN a.name, b.name, r.since """) 脚本 scripts/neo4j_client.py - Neo4j 连接和 CRUD 操作 scripts/cypher_builder.py - Cypher 查询构建工具 scripts/graph_analytics.py - 图算法(中心度、路径、社区) 参考 references/cypher_cheatsheet.md - 常见 Cypher 模式 references/neo4j_patterns.md - Neo4j 设计模式 API 和 CLI 等技术术语保持不变,技能名称和品牌名称也保持为英文。