图论模体是具有明确结构的小型连通诱导子图。这些函数在图中搜索各种模体。
详细信息
motifs()
在图中搜索给定大小的模体,并返回一个数值向量,其中包含不同模体的数量。模体的顺序由它们的同构类定义,请参阅 isomorphism_class()
。
参见
其他图模体: count_motifs()
, dyad_census()
, sample_motifs()
示例
g <- sample_pa(100)
motifs(g, 3)
#> [1] NA NA 504 NA 83 0 0 0 0 0 0 0 0 0 0 0
count_motifs(g, 3)
#> [1] 587
sample_motifs(g, 3)
#> [1] 0