feat: expose fluid communities to python#835
Merged
szhorvat merged 8 commits intoigraph:developfrom Jun 24, 2025
Merged
Conversation
szhorvat
reviewed
Jun 18, 2025
szhorvat
reviewed
Jun 18, 2025
szhorvat
requested changes
Jun 18, 2025
Member
szhorvat
left a comment
There was a problem hiding this comment.
This looks great to me @BeaMarton13, other than the small nitpicks I noted!
@ntamas, can you also have a look please?
ntamas
approved these changes
Jun 18, 2025
Member
ntamas
left a comment
There was a problem hiding this comment.
LGTM, apart from what Szabolcs already noted.
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for fluid communities in the Python interface of igraph.
- Implements the fluid communities algorithm in the C and Python layers.
- Updates the igraph API (init.py) to expose the new feature.
- Includes several tests in tests/test_decomposition.py validating the expected behavior and error conditions.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/test_decomposition.py | Added test cases for the fluid communities algorithm. |
| src/igraph/community.py | Introduced the Python wrapper for the fluid communities method. |
| src/igraph/init.py | Exposed the new fluid communities API in igraph’s public interface. |
| src/_igraph/graphobject.c | Added the C binding for fluid communities. |
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.
I used Cody for the functions.