View source: R/cohesive_subgroups.R
clique_table | R Documentation |
Exploration of a 3-cliques, as the maximum number of three or more actors who have all possible ties present among themselves
clique_table(A, list_cliques = FALSE, number = FALSE)
A |
A symmetric matrix object. |
list_cliques |
Whether to return the list of cliques. |
number |
Number of triangles |
This function return an edge list of actors participating in 3-cliques.
If list_cliques = TRUE
it also return the list of cliques per nodes.
If number = TRUE
the output returns the number of 3-cliques in the matrix.
Alejandro Espinosa-Rada
Luce, R.D. and Perry, A.D. (1949). A method of matrix analysis of group structure. Psychometrika, 14: 95-116.
Roethlisberger, F.J. and Dickson, W.J. (1939). Management and the Worker. Harvard University Press, Cambridge, MA.
Wasserman, S. and Faust, K. (1994). Social network analysis: Methods and applications. Cambridge University Press.
A <- matrix(c(
0, 1, 1, 0, 0, 0, 0, 1, 0,
1, 0, 1, 0, 0, 0, 0, 0, 0,
1, 1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 1, 0, 0, 0,
0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 1, 0, 0, 1, 1, 0,
0, 0, 0, 0, 0, 1, 0, 1, 0,
1, 0, 0, 0, 0, 1, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0
), byrow = TRUE, ncol = 9)
rownames(A) <- letters[1:nrow(A)]
colnames(A) <- rownames(A)
clique_table(A, list_cliques = TRUE, number = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.