Skip to content

Commit 6d45c1c

Browse files
updated deprecated igraph function
1 parent 792223a commit 6d45c1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Authors@R: c(person("Finlay", "Campbell", email = "finlaycampbell93@gmail.com",
1212
person("Zhian N.", "Kamvar", email = "zkamvar@gmail.com", role = c("aut")))
1313
Description: A collection of tools for representing epidemiological contact data, composed of case line lists and contacts between cases. Also contains procedures for data handling, interactive graphics, and statistics.
1414
License: GPL (>=2)
15-
RoxygenNote: 7.2.3
15+
RoxygenNote: 7.3.2
1616
Imports: grDevices, dplyr, igraph, visNetwork, threejs, methods
1717
Suggests: outbreaks, testthat, covr, shiny, readr, knitr, rmarkdown
1818
VignetteBuilder: knitr

R/get_clusters.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ get_clusters <- function(x, output = c("epicontacts", "data.frame"),
7777

7878
output <- match.arg(output)
7979
net <- as.igraph.epicontacts(x)
80-
cs <- igraph::clusters(net)
80+
81+
cs <- igraph::components(net)
8182
cs_size <- setNames(data.frame(cluster_member = seq_along(cs$csize),
8283
cluster_size = cs$csize),
8384
cluster_cols)

0 commit comments

Comments
 (0)