Closed (fixed)
Project:
User Relationships
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Jan 2009 at 09:12 UTC
Updated:
20 Feb 2009 at 10:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
jaydub commentedthis isn't a critical issue...There are some solutions out there based on Djikstra's alogorithm including some work done for a Drupal GSOC project http://drupal.org/project/sna. The work done in buddylist2 for shortest route is also an implementation of Djikstra's algorithm (seems to have come directly from http://www.cs.virginia.edu/cs200/ps/ps7). All mentions of shortest route indicate that Djikstra's algorithm will deliver the answer most efficiently but the performance can be poor if the dataset (users) is large.
I'd suggest that this is something that could be rolled into the Universal Relation API http://drupal.org/project/drupal_universal_relation_api
Comment #2
alex.k commentedI did an implementation of something similar. It's a PHP-coded block that displays up to 6 shortest connections between you and another user, or the author of the node you are looking at. It's not Dijkstra's, and isn't a very fast algorithm, so I limited it to a depth of 3. Give it a try, to see if it works for you.
Comment #3
jaydub commentedmarking #251766: Display "Shortest Route" between users as duplicate of this issue.
Comment #4
kenorb commentedsubscribing
Comment #5
alex.k commentedCleaning up issue queue, please reopen if not solved.