Replies: 1 comment 1 reply
-
|
The Leiden algorithm is implemented in igraph itself, with slightly better performance, but less flexibility, than in leidenalg. Everything you use here is already built into igraph, see https://python.igraph.org/en/stable/api/igraph.Graph.html#community_leiden |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Leiden clustering is a popular community detection algorithm and often used for GraphRAG applications thanks to Microsoft's paper. Since FalkorDB does not feature clustering algorithms out-of-the-box, and I did not want to switch to Neo4j simply for the GDS module for this one feature, I wrote a (heavily documented) manual implementation (with help from our future AI overlords of course!) and am sharing it here in case it's useful to anyone else and to say thanks by trying to contribute at least a little back!
If anyone finds bugs please do let me know!
NOTE: Pass a FalkorDB Client:
client = FalkorDB(host=graph_db_server_host, port=assign_host_port_to_graph_db_server)Beta Was this translation helpful? Give feedback.
All reactions