Description Usage Arguments Value Examples
Count multi-level motifs
1 2 3 4 5 6 7 8 | count_motifs(
net,
motifs,
lvl_attr = c("sesType"),
assume_sparse = TRUE,
omit_total_result = TRUE,
directed = NULL
)
|
net |
A network object with a node attribute specifying the level of each node |
motifs |
a list of motif identifiers which shall be counted, e.g.
|
lvl_attr |
character vector specifying the vertex attribute name where
level information is stored in |
assume_sparse |
whether the network shall be assumed to be sparse (for optimization), default TRUE |
omit_total_result |
whether total results shall be omitted, default FALSE |
directed |
whether the graph shall be treated as a directed graph. Per
default ( |
data frame with a column containing motif identifier strings and one column containing motif counts
1 2 3 4 5 6 7 8 | ## Not run:
count_motifs(ml_net,
lvl_attr = c("sesType"),
motifs = list("1,2[I.C]", "1,2[II.C]", "2,1[I.C]", "2,1[II.C]"),
directed = FALSE
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.