图论模体是具有明确结构的小型连通诱导子图。这些函数在图中搜索各种模体。
用法
sample_motifs(
graph,
size = 3,
cut.prob = rep(0, size),
sample.size = NULL,
sample = NULL
)
参见
其他图论模体: count_motifs()
, dyad_census()
, motifs()
示例
g <- sample_pa(100)
motifs(g, 3)
#> [1] NA NA 401 NA 93 0 0 0 0 0 0 0 0 0 0 0
count_motifs(g, 3)
#> [1] 494
sample_motifs(g, 3)
#> [1] 60