Shared partners
Usage
shared_partners(
A,
loops = FALSE,
directed = TRUE,
type = c("dsp", "esp", "nsp")
)
References
Hunter, D. R. and M. S. Handcock (2006), Inference in curved exponential family models for networks, Journal of Computational and Graphical Statistics, 15: 565– 583.
Examples
A <- matrix(c(
0, 1, 0, 0, 0, 0,
1, 0, 1, 1, 0, 1,
0, 1, 0, 1, 0, 0,
0, 1, 1, 0, 1, 1,
0, 0, 0, 1, 0, 1,
0, 1, 0, 1, 1, 0
), byrow = TRUE, ncol = 6)
shared_partners(A, type = "dsp")
#> dsp
#> 0 1 2
#> 4 18 8
shared_partners(A, type = "esp")
#>
#> 0 1 2
#> 2 10 4
shared_partners(A, type = "nsp")
#> nsp
#> 0 1 2
#> 2 8 4