Skip to content

Commit 267fba5

Browse files
Merge branch 'dev'
2 parents 2f6e1b5 + 24c92f8 commit 267fba5

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
## [1.0.4] - 2022 September 25
4+
* Remove 'Matrix.utils' as dependency
35

46
## [1.0.3] - 2022 April 08
57
* Install rigraph directly in `/src`. Remove previous linking to `igraph` R package in Makevars.

DESCRIPTION

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: leidenAlg
22
Type: Package
33
Title: Implements the Leiden Algorithm via an R Interface
4-
Version: 1.0.3
4+
Version: 1.0.4
55
Authors@R: c(person("Peter", "Kharchenko", email = "Peter_Kharchenko@hms.harvard.edu", role = c("aut")), person("Viktor", "Petukhov", email = "viktor.s.petukhov@ya.ru", role = c("aut")), person("V.A.", "Traag", email = "v.a.traag@cwts.leidenuniv.nl", role = c("ctb")), person("Gábor", "Csárdi", email = "sardi.gabor@gmail.com", role = c("ctb")), person("Tamás", "Nepusz", email = "ntamas@gmail.com", role = c("ctb")), person("Minh Van", "Nguyen", email = "nguyenminh2@gmail.com", role = c("ctb")), person("Evan", "Biederstedt", email = "evan.biederstedt@gmail.com", role=c("cre", "aut")))
66
Description: An R interface to the Leiden algorithm, an iterative community detection algorithm on networks. The algorithm is designed to converge to a partition in which all subsets of all communities are locally optimally assigned, yielding communities guaranteed to be connected. The implementation proves to be fast, scales well, and can be run on graphs of millions of nodes (as long as they can fit in memory). The original implementation was constructed as a python interface "leidenalg" found here: <https://github.com/vtraag/leidenalg>. The algorithm was originally described in Traag, V.A., Waltman, L. & van Eck, N.J. "From Louvain to Leiden: guaranteeing well-connected communities". Sci Rep 9, 5233 (2019) <doi:10.1038/s41598-019-41695-z>.
77
License: GPL-3
@@ -13,7 +13,6 @@ Imports:
1313
graphics,
1414
grDevices,
1515
igraph,
16-
Matrix.utils,
1716
parallel,
1817
Rcpp (>= 1.0.5),
1918
sccore,
@@ -23,7 +22,7 @@ Suggests:
2322
testthat (>= 3.1.0)
2423
LinkingTo: Rcpp, RcppArmadillo, RcppEigen
2524
SystemRequirements: C++11, GNU make (optional), libxml2 (optional), glpk (>= 4.57, optional)
26-
RoxygenNote: 7.1.2
25+
RoxygenNote: 7.2.1
2726
URL: https://github.com/kharchenkolab/leidenAlg
2827
BugReports: https://github.com/kharchenkolab/leidenAlg/issues
2928
NeedsCompilation: yes

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export(leiden.community)
77
export(rleiden.community)
88
exportPattern("^[[:alpha:]]+")
99
import(Matrix)
10-
import(Matrix.utils)
1110
import(Rcpp)
1211
import(parallel)
1312
import(sccore)

R/communities.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#' @importFrom graphics par
1414
#' @importFrom grDevices adjustcolor
1515
#' @importFrom stats as.dendrogram is.leaf dendrapply as.hclust
16-
#' @import Matrix.utils
1716
#' @import Matrix
1817
NULL
1918

man/exampleGraph.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/leiden.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ using namespace std;
1212
using namespace Rcpp;
1313

1414

15+
// Debug Mode implies checking assertions.
16+
#if defined(_GLIBCXX_ASSERTIONS)
17+
# define _GLIBCXX_ASSERTIONS 0
18+
#endif
19+
1520
// a wrapper for the Leidgen algorithm implementation (https://github.com/vtraag/leidenalg)
1621

1722
int R_SEXP_to_vector(SEXP sv, igraph_vector_t *v) {

src/leidenalg/RBConfigurationVertexPartition.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#include "RBConfigurationVertexPartition.h"
22
#include "igraph.h"
33

4+
// Debug Mode implies checking assertions.
5+
#if defined(_GLIBCXX_ASSERTIONS)
6+
# define _GLIBCXX_ASSERTIONS 0
7+
#endif
8+
49

510
RBConfigurationVertexPartition::RBConfigurationVertexPartition(Graph* graph,
611
vector<size_t> const& membership, double resolution_parameter) :

0 commit comments

Comments
 (0)