@@ -215,11 +215,7 @@ skip_if_no_python <- function() {
215215 testthat :: skip(" leidenalg not available for testing" )
216216}
217217
218- <<<<<<< HEAD
219-
220- =======
221218set.seed(9000 )
222- >>>>>>> 7d904bd98ec75ea8cc9bda7b50896458b3c26522
223219test_that(" run with CPMVertexPartition multiplexed" , {
224220 skip_if_no_python()
225221 partition <- leiden(multiplex_graph ,
@@ -231,19 +227,12 @@ test_that("run with CPMVertexPartition multiplexed", {
231227 expect_equal(partition ,
232228 c(8 , 2 , 7 , 5 , 2 , 5 , 1 , 2 , 6 , 5 , 5 , 2 , 2 , 5 , 5 , 5 , 3 , 6 , 1 , 2 ,
233229 7 , 10 , 3 , 1 , 3 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 2 , 4 , 4 , 2 ,
234- <<<<<<< HEAD
235- 2 , 2 , 6 , 4 , 2 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 6 , 7 , 6 , 4 , 9 , 4
236- =======
237230 2 , 2 , 6 , 4 , 2 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 3 , 7 , 6 , 4 , 9 , 4
238- >>>>>>> 7d904bd98ec75ea8cc9bda7b50896458b3c26522
239231 ))
240232 multiplex_graph
241233})
242234
243- <<<<<<< HEAD
244- =======
245235set.seed(9000 )
246- >>>>>>> 7d904bd98ec75ea8cc9bda7b50896458b3c26522
247236test_that(" run with ModularityVertexPartition multiplexed" , {
248237 skip_if_no_python()
249238 partition <- leiden(multiplex_graph ,
@@ -253,14 +242,6 @@ test_that("run with ModularityVertexPartition multiplexed", {
253242 seed = 9001 )
254243 expect_length(partition , length(V(multiplex_graph [[1 ]])))
255244 expect_equal(sort(unique(partition )), 1 : 6 )
256- <<<<<<< HEAD
257- expect_equal(partition ,
258- c(3 , 3 , 1 , 4 , 3 , 4 , 4 , 3 , 1 , 4 , 4 , 3 , 3 , 4 , 4 , 4 , 1 , 1 , 2 , 3 ,
259- 1 , 3 , 1 , 2 , 1 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 3 , 5 , 5 , 3 , 3 ,
260- 3 , 1 , 5 , 3 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 5 , 5 , 5 , 1 , 1 , 1 , 5 , 6 , 5 ))
261- })
262-
263- =======
264245 expect_equal(table(partition ),
265246 structure(c(`1` = 15L , `2` = 13L , `3` = 13L , `4` = 11L , `5` = 8L ,
266247 `6` = 1L ), .Dim = 6L , .Dimnames = list (partition = c(" 1" , " 2" ,
@@ -272,7 +253,6 @@ test_that("run with ModularityVertexPartition multiplexed", {
272253})
273254
274255set.seed(9000 )
275- >>>>>>> 7d904bd98ec75ea8cc9bda7b50896458b3c26522
276256test_that(" run with ModularityVertexPartition multiplexed and max_comm_size" , {
277257 skip_if_no_python()
278258 partition <- leiden(multiplex_graph ,
@@ -284,16 +264,9 @@ test_that("run with ModularityVertexPartition multiplexed and max_comm_size", {
284264 expect_length(partition , length(V(multiplex_graph [[1 ]])))
285265 expect_equal(sort(unique(partition )), 1 : 10 )
286266 expect_equal(max(table(partition )), 8 )
287- <<<<<<< HEAD
288- expect_equal(partition ,
289- c(4 , 4 , 2 , 3 , 8 , 3 , 3 , 4 , 2 , 3 , 3 , 8 , 8 , 3 , 3 , 3 , 6 , 6 , 5 , 8 ,
290- 2 , 8 , 6 , 7 , 2 , 5 , 5 , 5 , 7 , 5 , 7 , 7 , 5 , 5 , 7 , 5 , 4 , 1 , 1 , 4 , 4 ,
291- 4 , 2 , 1 , 4 , 6 , 6 , 6 , 6 , 9 , 2 , 6 , 1 , 1 , 1 , 2 , 2 , 7 , 1 , 10 , 1 ))
292- =======
293267 expect_equal(table(partition ),
294268 structure(c(`1` = 8L , `2` = 8L , `3` = 8L , `4` = 8L , `5` = 8L ,
295269 `6` = 8L , `7` = 6L , `8` = 5L , `9` = 1L , `10` = 1L ), .Dim = 10L , .Dimnames = list (
296270 partition = c(" 1" , " 2" , " 3" , " 4" , " 5" , " 6" , " 7" , " 8" , " 9" ,
297271 " 10" )), class = " table" ))
298- >>>>>>> 7d904bd98ec75ea8cc9bda7b50896458b3c26522
299272})
0 commit comments