Skip to content

Commit 684ef15

Browse files
tests passing with random seed set
1 parent cf54427 commit 684ef15

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

tests/testthat/test_bipartite.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library("reticulate")
22
library("igraph")
33
library("leiden")
44
library("bipartite")
5+
set.seed(9000)
56

67
context("running Leiden on a bipartite igraph object")
78

tests/testthat/test_igraph.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library("leiden")
22
library("reticulate")
33
library("igraph")
44
context("running Leiden on an igraph object")
5+
set.seed(9000)
56

67
adj_mat <- matrix(round(runif(10000, 0, 1)), 100, 100)
78
snn_graph <- graph_from_adjacency_matrix(adj_mat)

tests/testthat/test_leiden.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
library("leiden")
22
library("reticulate")
33
context("running Leiden on an adjacency matrix")
4+
set.seed(9000)
45

56
adj_mat <- matrix(round(runif(10000, 0, 1)), 100, 100)
67

tests/testthat/test_methods.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library("leiden")
22
library("reticulate")
33
library("igraph")
44
context("running Leiden on an dense and sparse matrices")
5+
set.seed(9000)
56

67
adj_mat <- matrix(round(runif(10000, 0, 1)), 100, 100)
78
snn_graph <- graph_from_adjacency_matrix(adj_mat)

tests/testthat/test_multiplex.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
library("reticulate")
22
library("igraph")
33
library("leiden")
4+
set.seed(9000)
45

56
context("running Leiden on multiplex igraph objects")
67

tests/testthat/test_weighted.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library("leiden")
22
library("reticulate")
33
library("igraph")
44
context("running Leiden on unweighted objects")
5+
set.seed(9000)
56

67
modules <- reticulate::py_module_available("leidenalg") && reticulate::py_module_available("igraph")
78

0 commit comments

Comments
 (0)