Creates an undirected, weighted igraph graph from a
cooccurrence edge list.
Arguments
- x
A
cooccurrencedata frame.- ...
Passed to
igraph::graph_from_data_frame.
Examples
res <- cooccurrence(list(c("A","B","C"), c("B","C"), c("A","C")))
if (requireNamespace("igraph", quietly = TRUE)) {
g <- as_igraph(res)
igraph::vcount(g)
}
#> [1] 3
