Movatterモバイル変換


[0]ホーム

URL:


motifr1.0.0

List gaps

Source:R/gaps_critical_edges.R
identify_gaps.Rd

List gaps ordered by contribution to a motif. This is a list of ties togetherwith the number of motifs of a given class the dyad would generate by beingadded to the network.

identify_gaps(net,motif, lvl_attr=c("sesType"), level=-1)

Arguments

net

network object

motif

motif identifier

lvl_attr

character vector specifying the attribute name where levelinformation is stored innet.

level

level of the dyads which shall be considered, or -1 if the levelshall be determined automatically.

Value

data frame with three columns, listing edges and their contribution to motifs described by the motif identifier in descending order

Details

The level parameter determines on which level of the network gaps areanalysed. Per default, when ``level = -1``, the first level in the motifwhich provides exactly two nodes is selected. Use this parameter to specify alevel manually. The procedure for determining the level is the same as forthe Actor's Choice Model, cf. vignette.

Note that this only works for undirected graphs. Regardless of whether theinput graph is directed it is treated as undirected graph.

Examples

# \dontrun{head(identify_gaps(ml_net, motif="1,2[II.C]"))
#> vertex0 vertex1 contribution#> 1 actor10 actor27 5#> 2 actor18 actor44 5#> 3 actor6 actor24 4#> 4 actor16 actor55 4#> 5 actor18 actor27 4#> 6 actor18 actor31 4
# }

[8]ページ先頭

©2009-2025 Movatter.jp