Skip to content

Docstring weight handling fixes, Allow 3 algorithms to use weights, Fix crash in lswl_plus, expose leiden resolution parameter, expose more weights parameters#251

Merged
GiulioRossetti merged 14 commits intoGiulioRossetti:masterfrom
Agade09:leiden_resolution
Jul 14, 2025

Conversation

@Agade09
Copy link
Copy Markdown
Contributor

@Agade09 Agade09 commented Jul 11, 2025

Many docstrings were stating that an algorithm didn't support edge weights when it did (rber_pots, CPM, greedy_modularity, WALKSCAN, ASLPAw).

DER's docstring was incorrectly stating that it did support edge weights.

igraph's walktrap can use edge weights but the cdlib wrapper simply wasn't exposing it.

The leiden wrapper was not providing access to the resolution_parameter.

Many weighted-graph-handling algorithms in this library do not expose the weight parameter, while some do. In this PR I try to improve consistency in that regard by exposing the weight parameter for Infomap and AGDL.

lswl_plus was crashing on my graphs and in this PR I provide a fix.

LFM and UMSTMO required relatively minor modifications to be able to use edge weights.

@Agade09 Agade09 changed the title Leiden resolution Docstring weight handling fixes, Allow LFM/UMSTMO/WALKTRAP to use weights, Fix crash in lswl_plus, expose leiden resolution parameter, expose more weights parameters Jul 11, 2025
@Agade09 Agade09 changed the title Docstring weight handling fixes, Allow LFM/UMSTMO/WALKTRAP to use weights, Fix crash in lswl_plus, expose leiden resolution parameter, expose more weights parameters Docstring weight handling fixes, Allow 3 algorithms to use weights, Fix crash in lswl_plus, expose leiden resolution parameter, expose more weights parameters Jul 11, 2025
@GiulioRossetti GiulioRossetti merged commit c387f82 into GiulioRossetti:master Jul 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants