Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Using dijkstra for top N paths
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Neubauer  
View profile  
 More options Oct 3 2012, 12:08 am
From: Peter Neubauer <peter.neuba...@neotechnology.com>
Date: Wed, 3 Oct 2012 06:08:07 +0200
Local: Wed, Oct 3 2012 12:08 am
Subject: Re: [Neo4j] Using dijkstra for top N paths

Yves,
you could use some other algos such as A-start, see
https://github.com/neo4j-examples/java-astar-routing for an example.
Otherwise, via the Traversal Framewrok you have quite a lot of flexibility,
see http://docs.neo4j.org/chunked/snapshot/tutorial-traversal.html

also, you can use the core Java API and utilities like Gremlin on top of
it, see
http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-f...
an example of an algo built with that.

Enjoy!

/peter

On Tuesday, October 2, 2012, Wes Freeman wrote:
> So, when you're saying lightest, are you talking about path lengths, or
> relationship properties with weights/scores on them?

> Yeah, you can limit the result list of my query with LIMIT 5 (or
> something) to get the best 5, but if you have hundreds or thousands of
> paths it probably would get to be a slow query.

> Anyone know a better way to get the top n best paths?

> Wes

> On Tue, Oct 2, 2012 at 7:20 PM, Yuval Perlov <yuvalper...@gmail.com<javascript:_e({}, 'cvml', 'yuvalper...@gmail.com');>
> > wrote:

>> Seems the idea is to traverse all possible paths... what if there are a
>> lot of paths?  Dijkstra allows to find the best route but not the second
>> third etc but all might be too complex.

>> On Oct 3, 2012, at 1:13, Wes Freeman <freeman....@gmail.com<javascript:_e({}, 'cvml', 'freeman....@gmail.com');>>
>> wrote:

>> Please correct me if I'm misunderstanding your goal.

>> Is "lightest" a calculation of the sum of relationship costs?

>> If so, check out:

>> http://stackoverflow.com/questions/12587263/cypher-order-by-path-cost...

>> And:
>> http://console.neo4j.org/r/dygqp8

>> Note: reduce requires 1.9-SNAPSHOT.

>> Wes

>> On Tue, Oct 2, 2012 at 7:04 PM, Yuval <yuvalper...@gmail.com<javascript:_e({}, 'cvml', 'yuvalper...@gmail.com');>
>> > wrote:

>>> We would like to present several path results using weighted path
>>> finding - instead of the "lightest" route, we'd like to present the 5
>>> lightest routes.
>>> Is that possible?
>>> Has anyone done something similar?

>>> Yuval

>>> --

>>  --

>>  --

>  --

--

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Wanna learn something new? Come to http://graphconnect.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.