graphiti icon indicating copy to clipboard operation
graphiti copied to clipboard

Fix bug of label_propagation

Open FuJiaJie123 opened this issue 9 months ago • 2 comments

Fix bug of issue #297 I have read the CLA Document and I hereby sign the CLA


[!IMPORTANT] Fixes bug in label_propagation() in community_operations.py by updating community assignment logic to consider candidate rank.

  • Bug Fix:
    • Fixes bug in label_propagation() in community_operations.py related to community assignment logic.
    • Ensures new_community is updated only if community_candidate is valid and candidate_rank > 1.
  • Behavior:
    • Handles cases where community_lst is empty by setting default values (0, -1).

This description was created by Ellipsis for 5dba9500fa709719a6179c4fcac93fcce254fb7f. It will automatically update as commits are pushed.

FuJiaJie123 avatar Mar 24 '25 08:03 FuJiaJie123

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar Mar 24 '25 08:03 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

FuJiaJie123 avatar Mar 24 '25 08:03 FuJiaJie123