We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81421f4 commit 54b2b9eCopy full SHA for 54b2b9e
tests/testthat/test-community.R
@@ -583,7 +583,11 @@ test_that("modularity() handles NA weights correctly", {
583
mod_with_implicit_weights <- modularity(gw, membership_vec, weights = NULL)
584
expect_equal(mod_with_implicit_weights, mod_with_weights)
585
586
- mod_with_explicit_weights <- modularity(g, membership_vec, weights = E(gw)$weight)
+ mod_with_explicit_weights <- modularity(
587
+ g,
588
+ membership_vec,
589
+ weights = E(gw)$weight
590
+ )
591
expect_equal(mod_with_explicit_weights, mod_with_weights)
592
593
# Test that modularity works when all weights are NA
0 commit comments