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
1
vote
1 answer

NoSQL: Store a hierarchical Tree (representing files and folders)

I would like to store multiple Trees on disk (my trees represent hierarchies of files and folders) with key/value information on each node. I want to be able to compare these trees (intersection, union, difference, ...), they would have million of…
yohm
  • 452
  • 7
  • 14
1
vote
1 answer

Create neo4j graph with attributes

I am designing a web application that visually shows data from Neo4J. Here is my current annotation: CREATE (diseasedataset:Dataset { title: 'Disease Dataset', description: 'Dataset about diseases and mapping to cytogenetic location', creator:…
Justin
  • 545
  • 3
  • 7
  • 17
1
vote
0 answers

Graph database that supports ordered edges

I currently use orientdb as my graph DB. It is based on an underlying document db which supports ordered lists, and thus orientdb allows you to store edges in an order by doing something like this person.createEdgeProperty(Direction.OUT,…
gremwell
  • 1,419
  • 17
  • 23
1
vote
1 answer

Move method code to Neo4j Cypher query

I have a Spring Neo4j repository method getAvgVotesWeightForCriterion @Query("MATCH (d:Decision)<-[:VOTED_FOR]-(v:Vote)-[:VOTED_ON]->(c:Criterion) WHERE id(d) = {0} AND id(c) = {1} RETURN avg(v.weight)") double getAvgVotesWeightForCriterion(Decision…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
2 answers

Neo4J Don't know how to compare that

I'm trying to implement simple Spring Neo4j repository function with a List parameter: @Query("MATCH (c:Criterion) WHERE c IN {0} return c") List getAllCriteria(List criteria); After execution I'm getting following…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Apache titan stable version and documentation

Am new to Apache Titan, can anybody help me knowing the stable version of Apache Titan. Somewhere i read that stable release is 0.3.2 is that true? but i can see the latest version 0.5.4. so there is no stable version between 0.3.2 to 0.5.4. ? And…
Shri
  • 469
  • 5
  • 18
1
vote
1 answer

Modeling user information in a "shared" graph

I have a Neo4j graph that models the static relations among each concept of a course. Now I need to introduce the scores of each individual student in each concept. As I need to do complex queries and having efficiency in mind, I am considering…
IsidroGH
  • 2,037
  • 19
  • 27
1
vote
1 answer

Model with multiple Edges using Sails.js and OrientDB

I am new to Sails.js and OrientDB. I am trying to figure out how to create a model that has multiple edges using the sails-orientDB adapter. I have a vehicle model that stores basic vehicle information and a vehicle color: module.exports = { …
Gantrim
  • 37
  • 6
1
vote
0 answers

Gremlin Cayley query: return all orphaned nodes?

I found this post, namely, this Gremlin query at the end of the post: g.V.as('all').out.in.as('parents').optional('all').except('parents') This query finds all orphaned nodes (or at least it should). I need to do this in Cayley (google's Golang…
Stratus3D
  • 4,648
  • 4
  • 35
  • 67
1
vote
0 answers

Graph DB (Neo4J) - how to keep states? As nodes or properties?

What is the better way to keep nodes states in graph db (Neo4J)? As another nodes, or just like properites? Example: I have several nodes and I want them to choose if they are active or not. Should I create node Active and connect to it with…
Dariusz Mydlarz
  • 2,940
  • 6
  • 31
  • 59
1
vote
1 answer

Neo4J - creating large amount of relationships (3.6million)

I'm very new to Neo4j and I'm having difficulty when trying to create a large number of relationships (~3.5m) between roughly 2.5m nodes. I am trying to run the query below using the web-based interface to Neo4j on localhost. The query runs, but…
CWild
  • 13
  • 3
1
vote
2 answers

Fast in-memory graph database

Does anyone know of a good solution out there that can deal with processing a graph of interconnected nodes? For our purpose the nodes are locations and we move material with various attributes between these locations. At some point a user may need…
NeddySpaghetti
  • 13,187
  • 5
  • 32
  • 61
1
vote
2 answers

Neo4j browser doesn't visualize relationships

I am new at Neo4j and I've been trying the queries in the official Neo4j training course (with their "Movies" dummy database example). I have tried to run this query : MATCH (actor)-[:ACTED_IN]->(movie)<-[:DIRECTED]-(director) RETURN actor.name,…
user1885868
  • 1,063
  • 3
  • 17
  • 31
1
vote
2 answers

How to delete a node and its connected nodes with Neo4j cypher query?

For example, I want to delete Actor node with id = "005A" and its connected Movie nodes. The relationship between Actor and Movie node is ACTED_IN. I have tried this cypher query: MATCH (a:Actor {id: "005A"}) OPTIONAL MATCH…
null
  • 8,669
  • 16
  • 68
  • 98
1
vote
2 answers

How to get minimum subgraph for given vertices?

I have a graph. I want to extract a subgraph containing nodes in a list as well as the other nodes that are linked to the nodes in the list. Example: a graph has 4 nodes: 1,2,3,4 with the edges 1-2, 2-3, 1-4, 3-4. If my list has node 1,4, then the…
suri
  • 327
  • 1
  • 4
  • 14