Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Redisgraph find shortest path between 2 nodes

$
0
0

I am new to using graph tech . Below is one sample data i have , i want to put this in redis graph and find the shortest distance between 2 points .

{"Entry":{"Reception":152},"Reception":{"Corner":176,"Exit":153},"Corner":{"Gate":41,"Reception":176},"Gate":{"LiftLobby":53,"Corner":41},"LiftLobby":{"Gate":53}}

For example in this json object distance between Entry and Reception point is 152 units .What are the redisgraph queries i should use to

  1. Add data to the redisgraph.
  2. To Find shortest distance between 2 points .

Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>