Questions tagged [graph-databases]

A graph database uses graph structures with nodes, edges, and properties to represent and store information.

A graph database stores nodes and relationships instead of tables, or documents. Data is stored just like you might sketch ideas on a whiteboard. Your data is stored without restricting it to a pre-defined model, allowing a very flexible way of thinking about and using it.

Popular graph database providers

Books

Articles

2926 questions
19
votes
1 answer

What is the fastest ArangoDB friends-of-friends query (with count)

I'm trying to use ArangoDB to get a list of friends-of-friends. Not just a basic friends-of-friends list, I also want to know how many friends the user and the friend-of-a-friend have in common and sort the result. After several attempts at…
Terry Seidler
  • 2,043
  • 15
  • 28
19
votes
3 answers

In Cypher, how can I create a relationship if it doesn't exist; update property if it does

In Cypher in Neo4J, given two nodes, if there's no relationship between them, I'd like to create a relationship (of type Foo) with a weight property of one. If this relationship already exists, I'd like to increment its weight property. Is there a…
Newtang
  • 6,414
  • 10
  • 49
  • 70
18
votes
3 answers

Simple way to delete a relationship by ID in Neo4j Cypher?

Using Match and Where can delete a relationship by ID. Match ()-[r]-() Where ID(r)=1 Delete r Is there a simpler way?
Rm558
  • 4,621
  • 3
  • 38
  • 43
18
votes
2 answers

Loading a Neo4j subgraph into Networkx

I have been dealing with Neo4j through python's Bulbflow and now need a way to save/export subgraphs. I have seen Java and even Ruby approaches for doing this, however a simple Python approach seems to be hiding from me.. So far, I have found two…
zanbri
  • 5,958
  • 2
  • 31
  • 41
18
votes
7 answers

Graph databases and RDF triplestores: storage of graph data in python

I need to develop a graph database in python (I would enjoy if anybody can join me in the development. I already have a bit of code, but I would gladly discuss about it). I did my research on the internet. in Java, neo4j is a candidate, but I was…
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
17
votes
8 answers

Graph-structured databases and Php

I want to use a graph database using php. Can you point out some resources on where to get started? Is there any example code / tutorial out there? Or are there any other methods of storing data that relate to each other in totally random/abstract…
stagas
  • 4,607
  • 3
  • 28
  • 28
16
votes
3 answers

Storing multiple graphs in Neo4J

I have an application that stores relationship information in a MySQL table (contact_id, other_contact_id, strength, recorded_at). This is fine if all I need to do is show who a contact's relationships are or even to generate a list of mutual…
emh
  • 1,279
  • 3
  • 15
  • 26
16
votes
4 answers

Is it possible to visualize the output of a graph query (Gremlin or SPARQL) as nodes and edges in Amazon Neptune?

GREMLIN and SPARQL only define the APIs for graph queries. How do I use the API responses and and plot that as an actual graph, with edges and vertices? Is there something like MySQL Workbench for graphs?
The-Big-K
  • 2,672
  • 16
  • 35
16
votes
2 answers

How to store graph data in a database?

I am new to graphs and its very interesting.This question may be noob one but please site some good materials. I am trying to make a small social Network where each user is a node and has undirected connection with his friend. Its working fine but…
user2511713
  • 555
  • 3
  • 7
  • 18
15
votes
1 answer

Is it Necessary to move from neo4j Community Edition to Enterprise Edition and Queries about creating a new database in neo4j

I am doing Research work on Neo4j graph database. My main purpose to use Neo4j is for searching purpose.Till now I am working on the community edition of it, I had read (have a doubt) somewhere it allows around 100 millions of nodes. I had a…
user3359536
15
votes
1 answer

How to optimize graph traversals in ArangoDB?

I primarily intended to ask this question : "Is ArangoDB a true graph database ?" But, this question would sound quite offending. You, peoples at triAGENS, did a really great job in creating a "multi-paradigm" database. As a user of PostgreSQL,…
Raphaël Braud
  • 1,489
  • 10
  • 14
14
votes
2 answers

What is the difference between Orientdb editions?

I've been reading about OrientDB for a while now, and I'm a bit confused about the "Editions" of the software. The main version sounds like it's just the document store, but things on the internet make it sound like it's both the document and graph…
SpaceGhost
  • 359
  • 5
  • 17
14
votes
2 answers

Hold entire Neo4j graph database in RAM?

I'm researching graph databases for a work project. Since our data is highly connected, it appears that a graph database would be a good option for us. One of the first graph DB options I've run into is neo4j, and for the most part, I like it.…
teuber789
  • 1,527
  • 16
  • 28
14
votes
3 answers

Gremlin - only add a vertex if it doesn't exist

I have an array of usernames (eg. ['abc','def','ghi']) to be added under 'user' label in the graph. Now I first want to check if the username already exists (g.V().hasLabel('user').has('username','def')) and then add only those for which the…
Vipul Sharma
  • 768
  • 3
  • 11
  • 25
14
votes
1 answer

Neo4j - NOT IN query

The graph schema I have is (actors)-[:ACTED_IN]->(movies). I know how to find actors who have worked with a particular actor as below: MATCH (actor {name:"Tom Hanks"} )-[:ACTED_IN]->(movies)<-[:ACTED_IN]-(costars) return distinct costars; I know how…
Jack
  • 741
  • 1
  • 8
  • 25