neo4j / graph-data-science

Source code for the Neo4j Graph Data Science library of graph algorithms.
https://neo4j.com/docs/graph-data-science/current/
Other
597 stars 157 forks source link

Modularity metric #211

Closed devineyfajr closed 1 year ago

devineyfajr commented 1 year ago

Is your feature request related to a problem? Please describe.

Would like to be able to calculate the modularity metric for identified communities, similar to the conductance metric method gds.alpha.conductance

Describe the solution you would like

Either a separate metric, ala gds.modularity.???, or a generalized metric calculator gds.community-metric.??? where "conductance" and "modularity" are parameters.

Describe alternatives you have considered

Additional context

vnickolov commented 1 year ago

Hello @devineyfajr thank you for raising this, we have reviewed it and added this to our backlog. Will keep you updated when we start the work and have this feature available. We aim for the alpha namespace and decided to have a separate procedure for the modularity metric.

vnickolov commented 1 year ago

Hello @devineyfajr, we have implemented procedures to compute modularity for given communities and the functionality will be available in the latest release. If you are building the library the procedures are:

There is mandatory communityProperty configuration parameter that should be the node property holding the pre-computed community ID.

Please let us know if you have questions or comments.