Questions tagged [neo4j]

Neo4j is an open-source graph database (GDB) well suited to connected data. Please mention your exact version of Neo4j when asking questions. You can use it for recommendation engines, fraud detection, graph-based search, network ops/security, and many other user cases. The database is accessed via official drivers in Java, JavaScript, Python and .NET, or community-contributed drivers in PHP, Ruby, R, Golang, Elixir, Swift and more.

Neo4j is a open-source, transactional, high-performance native graph database.

Neo4j stores its data as a graph: Nodes are connected through Relationships, both with arbitrary properties. Neo4j features a graph-centric declarative query language called Cypher. Its drivers support many programming languages. More details in the Online Training and the Neo4j Manual.

Neo4j offers a fully-managed cloud database (Database as a service) called Neo4j AuraDB.

For questions that are not suitable for the Stack Overflow Q&A Format, please reach out on Discord. Neo4j also maintains a public Feedback Board for feature ideas and future development directions.


Useful Links

External Resources


Related Tags

22696 questions
4
votes
1 answer

ASP.NET and Neo4jClient - where to store the connection?

The C# Neo4JClient has GraphClient where you have to call .Connect() var client = new GraphClient(new Uri("http://localhost:7474/db/data")); client.Connect(); In all of the examples that I've seen, it's in a Console app, so they declare GraphClient…
4
votes
2 answers

Is neo4j traversal framework deprecated?

Does cypher replaces neo4j traversal now-a-days? Is neo4j traversal deprecated now?
manish
  • 69
  • 5
4
votes
2 answers

Cypher SORT performance

I'm trying to accomplish a pretty common task. I have a substantial dataset in a Neo4J database and, from a RESTful web service, i want to return the data in chunks of 25 nodes. My model is quite simple: (:Tenant {Hash:''})-[:owns]->(:Asset…
Geoffrey Braaf
  • 254
  • 2
  • 12
4
votes
1 answer

Object relational mapping with the Neo4jClient

Let’s consider the structure: (parent) –[:HAS_CHILD]-> (child) –[:HAS_DOG]-> (dog) Right now I would use the following cypher query to return a sort of hierarchy: MATCH (p:Parent) -[:HAS_CHILD]-> (c:Child) -[:HAS_DOG]-> (d: Dog) WITH p,…
Claudia
  • 53
  • 1
  • 4
4
votes
1 answer

Neo4j - Duplicates Despite Using Merge

I am attempting to generate a database using MERGE statements through Neo4JPHP. All of my queries are using MERGE; however, it is generating separate nodes every time, resulting in massive duplication. The queries are run within a single…
randak
  • 1,941
  • 1
  • 12
  • 22
4
votes
1 answer

Neo4j browser: Display relationship property as edge label not working

Is there a way to display relationship property as edge's label in Neo4j 2.0.1 Browser? It seems to work for nodes but not for edges.
alphageek
  • 770
  • 4
  • 15
4
votes
5 answers

Algorithms to find nearest nodes in a graph

I have a large road network graph. Suppose I know a specific location (say source node). Now my interest is to find out all the nearest neighbor nodes within a specific range. Say I want to find out all the locations (other nodes) which are in a…
4
votes
1 answer

Spring Data Neo4j - repository.save and @Indexed(unique=true)

Today I tried Spring Data Neo4j, I finally got it working somehow... I'm using: Spring 4.0.2 Spring Data Neo4j 3.0.0 QueryDSL 3.3.1 Neo4j 2.0.1 Here's my…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
4
votes
1 answer

How to create unique node in neo4j?

I'd like to ensure I do not create multiple nodes with my neo4j database. I see here that this is the preferred method (even after reviewing this page), but I do not understand what the code is really doing in that example. Can someone possibly…
WildBill
  • 9,143
  • 15
  • 63
  • 87
4
votes
2 answers

match in clause in cypher

How can I do an match in clause in cypher e.g. I'd like to find movies with ids 1, 2, or 3. match (m:movie {movie_id:("1","2","3")}) return m if you were going against an auto index the syntax was START n=node:node_auto_index('movie_id:("123",…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
4
votes
1 answer

Styling neo4j nodes and edges using GraSS

I am new to neo4j and I am trying to edit the GraSS file so that I can display nodes and relationship in different colors. Basically what I want is, nodes to have different colors based on certain properties of the node. For example there is a…
Ganesh
  • 131
  • 2
  • 9
4
votes
1 answer

Parametrizing relationship depth Neo4jphp

I am new to Neo4j. I have the following query in which I tried to parametrize the depth value for the relationship and it shows an error, If I remove parametrizing the depth value it works perfectly. $query="MATCH…
SarathSprakash
  • 4,614
  • 2
  • 19
  • 35
4
votes
2 answers

Weighted graph in Neo4j

I have a Neo4j instance running. I have relationships which are weighted. One such example is representing all places in the world, and having a distance between each place. Now it seems easy to create a relationship between two nodes, A and…
redrubia
  • 2,256
  • 6
  • 33
  • 47
4
votes
1 answer

Neo4j 2.0 - index on multiple labels

With the schema based index I can index a property for all nodes that have a given label. This is a bit confusing if I have the following use case: Let's say I index node Human with label Student on property name. If I add a new label Teacher, to…
amb
  • 1,599
  • 2
  • 11
  • 18
4
votes
1 answer

Neo4J Nodes vs Relationship Entities

I am working the examples of NEO4J found inside Spring Data's book. Nodes - Product, Person, Order Relationships - (Order) Items (Product), (person) Reviewed (product) I am designing my first Neo4J database and coming to a situation…
Erik
  • 2,782
  • 3
  • 34
  • 64