Critical dyads are edges on a specified level which break motifs by being removed from the network.
critical_dyads(net, motif, lvl_attr = c("sesType"), level = -1)
net | network object |
---|---|
motif | motif identifier |
lvl_attr | character vector specifying the attribute name where level
information is stored in |
level | level of the dyads which shall be considered, or -1 if the level shall be determined automatically. |
data frame with three columns, listing edges and their contribution to motifs described by the motif identifier in descending order
The level parameter determines on which level of the network critical dyads
are analysed. Per default, when level = -1
, the first level in the motif
which provides exactly two nodes is selected. Use this parameter to specify a
level manually. The procedure for determining the level is the same as for
the Actor's Choice Model, cf. vignette.
Note that this only works for undirected graphs. Regardless of whether the input graph is directed it is treated as undirected graph.
#> vertex0 vertex1 contribution #> 1 actor16 actor24 4 #> 2 actor6 actor7 3 #> 3 actor6 actor54 3 #> 4 actor7 actor54 3 #> 5 actor10 actor18 3 #> 6 actor10 actor24 3# }