Skip to content

Commit

Permalink
doc: Correct refine_routine and add defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
vtraag committed Feb 23, 2024
1 parent 779cb6a commit 8c5574d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/leidenalg/Optimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def consider_comms(self):
Nodes will only move to alternative communities that improve the given
quality function.
The default is :attr:`leidenalg.ALL_NEIGH_COMMS`.
Notes
-------
This attribute should be set to one of the following values
Expand Down Expand Up @@ -119,6 +121,8 @@ def refine_consider_comms(self):
Nodes will only move to alternative communities that improve the given
quality function.
The default is :attr:`leidenalg.ALL_NEIGH_COMMS`.
Notes
-------
This attribute should be set to one of the following values
Expand Down Expand Up @@ -151,6 +155,7 @@ def refine_consider_comms(self, value):
@property
def optimise_routine(self):
""" Determine the routine to use for *optimising* a partition.
The default is :attr:`leidenalg.MOVE_NODES`.
Notes
-------
Expand All @@ -173,16 +178,17 @@ def optimise_routine(self, value):
@property
def refine_routine(self):
""" Determine the routine to use for *refining* a partition.
The default is :attr:`leidenalg.MERGE_NODES`.
Notes
-------
This attribute should be set to one of the following values
* :attr:`leidenalg.MOVE_NODES`
Use :func:`move_nodes`.
Use :func:`move_nodes_constrained`.
* :attr:`leidenalg.MERGE_NODES`
Use :func:`merge_nodes`.
Use :func:`merge_nodes_constrained`.
"""
return _c_leiden._Optimiser_get_refine_routine(self._optimiser)

Expand Down

0 comments on commit 8c5574d

Please sign in to comment.