get_louvain_communities,cooccurrence_net-method {mosbi} | R Documentation

## Get louvain communities from a co-occurrence network

### Description

Extracts the louvain communities from a `cooccurrence_net` object using the louvain modularity optimization from the `igraph` package (`cluster_louvain`).

### Usage

    ## S4 method for signature 'cooccurrence_net'
    get_louvain_communities(bic_net, min_size = 2, bics = NULL)

### Arguments

`bic_net` | A `cooccurrence_net` object.
`min_size` | Minimum size of a louvain community to be returned (minimum value is 2).
`bics` | Not used.

### Value

A list of `cooccurrence_net` objects.

### Examples

    m <- matrix(seq(1:16), nrow=4)
    # m <- matrix(rnorm(10000), nrow=100)
    # bics <- c(run_fabia(m), run_isa(m), run_plaid(m))
    # fn <- feature_network(bics, m)
    # get_louvain_communities(fn)

[Package mosbi version 1.0.3 Index]