Censuses of graphs' motifs

graph_dyad_census(object)

graph_triad_census(object)

graph_mixed_census(object, object2)

Source

Alejandro Espinosa 'netmem'

Arguments

object

A migraph-consistent object.

object2

A second, two-mode migraph-consistent object.

Functions

  • graph_dyad_census: Returns a census of dyad motifs in a network

  • graph_triad_census: Returns a census of triad motifs in a network

  • graph_mixed_census: Returns a census of triad motifs that span a one-mode and a two-mode network

References

Davis, James A., and Samuel Leinhardt. 1967. “The Structure of Positive Interpersonal Relations in Small Groups.” 55.

Hollway, James, Alessandro Lomi, Francesca Pallotti, and Christoph Stadtfeld. 2017. “Multilevel Social Spaces: The Network Dynamics of Organizational Fields.” Network Science 5(2): 187–212. doi:10.1017/nws.2017.8

See also

Other motifs: node_census

Examples

graph_dyad_census(ison_adolescents)
#> # A tibble: 1 × 2
#>   Mutual  Null
#>    <dbl> <dbl>
#> 1     10    18
graph_triad_census(ison_adolescents)
#> # A tibble: 1 × 6
#>   `003` `012` `102` `201` `210` `300`
#>   <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1    13     0    29    11     0     3
marvel_friends <- to_unsigned(ison_marvel_relationships, "positive")
(mixed_cen <- graph_mixed_census(marvel_friends, ison_marvel_teams))
#> # A tibble: 1 × 10
#>    `22`  `21`  `20`  `12` `11D` `11U`  `10`  `02`  `01`   `00`
#>   <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>  <dbl>
#> 1  1137     0  1702  7064     0     0 22774 30856     0 130765