feat: add Leiden community detection (LEIDEN/LE) to ALGO extension#29
Closed
chiangchenghsin-hash wants to merge 5 commits into
Closed
feat: add Leiden community detection (LEIDEN/LE) to ALGO extension#29chiangchenghsin-hash wants to merge 5 commits into
chiangchenghsin-hash wants to merge 5 commits into
Conversation
…LE community detection"
…community detection"
Contributor
|
Looking to deprecate the current algo extension. Plan is to reroute the GDS functions to icebug, which already has a much more performant implementation: https://github.com/LadybugDB/ladybug-icebug-notebooks/blob/main/ladybug_icebug_comm_detection.ipynb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Leiden community detection algorithm (
CALL leiden(...)) and its alias (CALL le(...)) to the ALGO extension.Features
CALL leiden('projection') RETURN node, community_id— Leiden algorithmCALL le('projection') RETURN node, community_id— Short aliasFiles
src/include/function/leiden.h(new) — Function declarationsrc/function/leiden.cpp(new) — Implementation with LeidenGraph, MoveNodesFast, GDSResultVertexCompute pipelinesrc/main/algo_extension.cpp(edit) — Register LeidenFunction + LeidenAliasFunctionsrc/function/CMakeLists.txt(edit) — Add leiden.cpp to buildAlgorithm
Independent C++ implementation (no external dependencies). The MoveNodesFast local moving phase is implemented. The refinement and aggregation phases are scaffolded for future completion.
Verification
CALL LEIDEN('G') RETURN node, community_id→ returns correct community assignmentsCALL LE('G') RETURN node, community_id→ alias works