Graph Database Toolkit
Operations toolkit for graph databases with focus on Neo4j and Cypher.
Quick Start
from scripts.neo4j_client import 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
scripts/neo4j_client.py- Neo4j connection and CRUD operationsscripts/cypher_builder.py- Cypher query builder utilitiesscripts/graph_analytics.py- Graph algorithms (centrality, paths, community)
References
references/cypher_cheatsheet.md- Common Cypher patternsreferences/neo4j_patterns.md- Neo4j design patterns