graph-data-science-client icon indicating copy to clipboard operation
graph-data-science-client copied to clipboard

use the minCommunitySize parameter in Louvain or LPA

Open chrisoraruf opened this issue 1 year ago • 1 comments

Just a question to ask how to use the parameter that it is mentioned also in the original GDS page in the algorithm presentation. Apparently there is some one to one correspondence with some parameters like seedProperty, but cannot make minCommunitySize work.

If somebody know or can tell me how to face the problem would be great.

Cheers.

P:S: example that does not work because of minCommunitySize parameter: gds.louvain.stats(G_largest_component, seedProperty="responsibility", minCommunitySize=20)

chrisoraruf avatar Aug 02 '24 14:08 chrisoraruf

Hi @chrisoraruf,

Thank you for raising this issue. Yes you are correct that there is correspondence of the parameters between the Python client and the GDS procedures. The example above would not work because minCommunitySize is only supported in stream and write mode of the procedures, meaning that stats and mutate will raise an error if the parameter is used.

I hope this helps.

vnickolov avatar Aug 05 '24 06:08 vnickolov

Closing due to inactivity. Please reopen if needed

FlorentinD avatar Nov 15 '24 08:11 FlorentinD