Creates the clique vertex matrix with entries (i,j) equal to one if node j is in clique i
Examples
library(igraph)
g <- sample_gnp(10, 0.2)
clique_vertex_mat(g)
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
#> [1,] 0 0 1 0 0 0 0 0 0 0
#> [2,] 0 1 0 0 0 0 0 0 0 0
#> [3,] 0 0 0 0 0 0 1 0 1 0
#> [4,] 0 0 0 0 0 0 0 1 1 0
#> [5,] 0 0 0 0 1 0 0 1 0 0
#> [6,] 1 0 0 0 0 0 0 1 0 0
#> [7,] 0 0 0 0 1 0 0 0 0 1
#> [8,] 0 0 0 1 0 0 0 0 0 1
#> [9,] 0 0 0 1 0 1 0 0 0 0
#> [10,] 0 0 0 0 1 1 0 0 0 0