Questions tagged [neo4j-traversal-api]

7 questions
5
votes
1 answer

How to get GraphDatabaseService instance for locally running neo4j server

I am trying out neo4j traversal api. All examples online work with GraphDatabaseService instance to use its traversalDescription() afterwards to define traversal pattern. However online examples (like this one) uses GraphDatabaseFactory to obtain…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
2
votes
1 answer

Neo4J Java Native APIs vs Traversal APIs vs Cypher

Has anyone done the performance evaluation for Neo4J Java Native APIs, Traversal APIs and Cypher. Which of the above three options will yield me better result from performance perspective? Also, for write operations, should I use Native java APIs or…
Piyush
  • 101
  • 4
1
vote
1 answer

Coding a type of random walk in Neo4j using the Traversal Framework

I'm currently working on a graph where nodes are connected via probabilistic edges. The weight on each edge defines the probability of existence of the edge. Here is an example graph to get you…
David
  • 23
  • 5
1
vote
1 answer

neo4j traversal api partially scan hub nodes

I'm using the traversal API to travers a graph which contains some hubs, i.e. nodes with many incoming/outcoming edges. I would like to traverse only some of them, for example 6000 and then stop. Traversing all of them is not an option for time…
D063520
  • 113
  • 6
1
vote
2 answers

Traversing Neo4j graph in increasing order of relationship weights using Cypher

Consider I have following graph with edge weights: I want to know if I can perform traversal starting at node a and following edges with increasing order of their weight using CYPHER. That is above it should return (a)-4->(e)-3->(c)-3->(d) Is this…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
0
votes
0 answers

Neo4j display subgraph based on multiple paths

I want to display a subgraph in Neo4j(COMMUNITY EDITION on localhost) based on multiple paths. The paths are the result of a custom traversalDescription() with a special evaluate(Path path). The intention was to ignore a special sequence of…
Yoshi
  • 141
  • 2
  • 16
0
votes
1 answer

Getting number of unique paths traversed while traversing using Neo4j traversal API

I have created following basic graph: CREATE (:NodeType1 {prop1:'value1'})-[:RelType1 {prop2:'value2'}]->(:NodeType2 {prop3:'value3'})-[:RelType2 {prop4:'value4'}]->(:NodeType3 {prop5:'value5'})-[:RelType3 {prop6:'value6'}]->(:NodeType4…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189