Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
evanbiederstedt committed Sep 26, 2022
2 parents 2f6e1b5 + 24c92f8 commit 267fba5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

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

## [1.0.3] - 2022 April 08
* Install rigraph directly in `/src`. Remove previous linking to `igraph` R package in Makevars.
Expand Down
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: leidenAlg
Type: Package
Title: Implements the Leiden Algorithm via an R Interface
Version: 1.0.3
Version: 1.0.4
Authors@R: c(person("Peter", "Kharchenko", email = "[email protected]", role = c("aut")), person("Viktor", "Petukhov", email = "[email protected]", role = c("aut")), person("V.A.", "Traag", email = "[email protected]", role = c("ctb")), person("Gábor", "Csárdi", email = "[email protected]", role = c("ctb")), person("Tamás", "Nepusz", email = "[email protected]", role = c("ctb")), person("Minh Van", "Nguyen", email = "[email protected]", role = c("ctb")), person("Evan", "Biederstedt", email = "[email protected]", role=c("cre", "aut")))
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>.
License: GPL-3
Expand All @@ -13,7 +13,6 @@ Imports:
graphics,
grDevices,
igraph,
Matrix.utils,
parallel,
Rcpp (>= 1.0.5),
sccore,
Expand All @@ -23,7 +22,7 @@ Suggests:
testthat (>= 3.1.0)
LinkingTo: Rcpp, RcppArmadillo, RcppEigen
SystemRequirements: C++11, GNU make (optional), libxml2 (optional), glpk (>= 4.57, optional)
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
URL: https://github.com/kharchenkolab/leidenAlg
BugReports: https://github.com/kharchenkolab/leidenAlg/issues
NeedsCompilation: yes
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export(leiden.community)
export(rleiden.community)
exportPattern("^[[:alpha:]]+")
import(Matrix)
import(Matrix.utils)
import(Rcpp)
import(parallel)
import(sccore)
Expand Down
1 change: 0 additions & 1 deletion R/communities.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#' @importFrom graphics par
#' @importFrom grDevices adjustcolor
#' @importFrom stats as.dendrogram is.leaf dendrapply as.hclust
#' @import Matrix.utils
#' @import Matrix
NULL

Expand Down
2 changes: 1 addition & 1 deletion man/exampleGraph.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/leiden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ using namespace std;
using namespace Rcpp;


// Debug Mode implies checking assertions.
#if defined(_GLIBCXX_ASSERTIONS)
# define _GLIBCXX_ASSERTIONS 0
#endif

// a wrapper for the Leidgen algorithm implementation (https://github.com/vtraag/leidenalg)

int R_SEXP_to_vector(SEXP sv, igraph_vector_t *v) {
Expand Down
5 changes: 5 additions & 0 deletions src/leidenalg/RBConfigurationVertexPartition.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#include "RBConfigurationVertexPartition.h"
#include "igraph.h"

// Debug Mode implies checking assertions.
#if defined(_GLIBCXX_ASSERTIONS)
# define _GLIBCXX_ASSERTIONS 0
#endif


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

0 comments on commit 267fba5

Please sign in to comment.