Predictable memory
Properties live on disk behind a bounded cache. Graph structure and indexes stay in memory. Tune storage and durability to the workload.
How storage worksWrite Cypher, run graph algorithms and inspect the results in Explorer.
Properties live on disk behind a bounded cache. Graph structure and indexes stay in memory. Tune storage and durability to the workload.
How storage worksSend parameterised Cypher from native drivers in seven languages. The compatibility guide lists exactly what is supported.
DriversCentrality, community detection and path finding run inside the database, alongside vector, spatial and full-text indexes.
Graph analyticsTwo nodes and a relationship, created and queried in Cypher. Connect from Python or JavaScript with a Bolt driver.
// Create two nodes and a relationship between them
CREATE (you:Developer {name: 'You'}),
(idea:Idea {name: 'Recipe finder'}),
(you)-[:BUILDS]->(idea);
MATCH (you:Developer)-[:BUILDS]->(idea)
RETURN you.name, idea.name;import os
from neo4j import GraphDatabase
# Use a driver that negotiates Bolt 4.4
with GraphDatabase.driver(
'bolt://127.0.0.1:7687',
auth=('gdb', os.environ['GDB_INITIAL_PASSWORD'])
) as driver:
with driver.session() as session:
result = session.run('RETURN 1 + 1 AS two')
print(result.single()['two'])const neo4j = require('neo4j-driver');
const driver = neo4j.driver(
'bolt://127.0.0.1:7687',
neo4j.auth.basic('gdb', process.env.GDB_INITIAL_PASSWORD)
);
const session = driver.session();
try {
const result = await session.run('RETURN 1 + 1 AS two');
console.log(result.records[0].get('two').toString());
} finally {
await session.close();
await driver.close();
}Link documents to the people, products and ideas they mention, so retrieval brings back the context around an answer.
Knowledge graphsAccounts that share a device or pass money between each other stand out as soon as you follow the links.
Fraud investigationSuggest the next read, watch or purchase from shared interests and similar behaviour.
RecommendationsThe Developer edition is free and needs no account or licence key. One Compose file starts the database and Explorer.