cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

What algorithm does neo4j uses for All pairs shortest path?

Hi,
I want to know what algorithm does neo4j uses for All pairs shortest path.

There are generally three algorithms in that problem.

  1. Floyd-Warshall Algorithm

  2. matrix multiplication

  3. Johnson's Algorihtm

Which one does neo4j use?

Thank you

5 REPLIES 5

Thanks but, I already checked the manual.

The manual only shows how to use APSP and does not show what algorithms APSP uses.

Hello @tajava2006

I don't know which algorithm is used but I can tell you where you can find it:

This is the GDS Github source code, I'm sure you can look for the method and find the algorithm

Regards,
Cobra

@Cobra
I'll give it a try. Thanks.