Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxWarnings: Invalid escape sequences. #194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/leidenalg/Optimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from math import log, sqrt

class Optimiser(object):
""" Class for doing community detection using the Leiden algorithm.
r""" Class for doing community detection using the Leiden algorithm.

The Leiden algorithm [1] derives from the Louvain algorithm [2]. The Louvain
algorithm has an elegant formulation. It consists of two phases: (1) move
Expand Down Expand Up @@ -308,7 +308,7 @@ def optimise_partition(self, partition, n_iterations=2, is_membership_fixed=None
return diff

def optimise_partition_multiplex(self, partitions, layer_weights=None, n_iterations=2, is_membership_fixed=None):
""" Optimise the given partitions simultaneously.
r""" Optimise the given partitions simultaneously.

Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions src/leidenalg/VertexPartition.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def weight_from_comm(self, v, comm):
return _c_leiden._MutableVertexPartition_weight_from_comm(self._partition, v, comm)

class ModularityVertexPartition(MutableVertexPartition):
""" Implements modularity. This quality function is well-defined only for positive edge weights.
r""" Implements modularity. This quality function is well-defined only for positive edge weights.

Notes
-----
Expand Down Expand Up @@ -758,7 +758,7 @@ def __deepcopy__(self, memo):
return new_partition

class RBConfigurationVertexPartition(LinearResolutionParameterVertexPartition):
""" Implements Reichardt and Bornholdt's Potts model with a configuration null model.
r""" Implements Reichardt and Bornholdt's Potts model with a configuration null model.
This quality function is well-defined only for positive edge weights.
This quality function uses a linear resolution parameter.

Expand Down