I am making a maven dynamic web application on dijkstra's algorithm in eclipse neon. I want to showcase my result as a graph directly on the neo4j console by running cypher queries directly from the java program. The basic thing is that the graph is only meant for visualization purpose for the user. so, What kind of code should be written in the java program to execute the cypher query (eg: match(n) return n) directly on the console? There are a lot of APIs and codes on github but none of them provide a specific result to my problem. I am not using neo4j spring data model. I am using neo4j CE 3.1.3. How can this be done in the best possible manner?
0
votes
1 Answers
0
votes
Since Neo4j only provides an API for the graph database and not for the browser for presenting purposes, I'd:
- Show the whole graph in the Neo4j browser (running the query manually)
- Run my Dijsktra algorithm from Java
- Remove any edges which are not part of the shortest path
- Show the new graph in the Neo4j browser (running the query manually)
If using the Neo4j browser is not a necessity, there are other visualisation options, especially the Alchemy.js option seems promising to showcase programming / graph database handling skills.