Counts occurrences of motifs in bipartite networks, as well as the number of
times each node or link appears in each unique position within motifs. Has support for both
binary and weighted motifs: can calculate the mean weight of motifs and the standard deviation
of their mean weights. Intended for use in ecology, but its methods are general and can be
applied to any bipartite network. Full details are given in Simmons et al. (2019)

bmotif counts occurrences of motifs in bipartite networks, as well as the number of times each node appears in each unique position within motifs. bmotif was intended for use in ecology but its methods are general and can be applied to any bipartite graph.

To install the released version from CRAN:

install.packages("bmotif")

To install the development version from GitHub:

install.packages("devtools") # install the devtools packagedevtools::install_github("SimmonsBI/bmotif") # install bmotif

bmotif considers all 44 unique bipartite motifs up to six nodes. Within these motifs there are 148 unique positions.

`bmotif`

has two functions: `mcount`

and `positions`

. `mcount`

counts occurrences of motifs in a bipartite network. `positions`

counts the number of times each node in a network occurs in each of the positions within the motifs.

- mcount() counts the number of motifs up to 6 nodes in a bipartite network.
- positions() counts the number of times each node in a bipartite network occurs in each unique position in each of the motifs up to 6 nodes.