Abstract problem : I have a graph of about 250,000 nodes and the average connectivity is around 10. Finding a node\'s connections is a long process (10 seconds lets say). Sa
Although you say that getting a friend list takes a lot of time (10 seconds or more), a variant of good-old Dijkstra's algorithm just might work:
The trick is to select the connection you load in step 2 in a smart way. A few short remarks about this:
In order to really say something about efficiency, please provide more details about datastructure.