compute_block_sums | R Documentation |
Compute the block sum of an adjacency matrix given a label vector.
compute_block_sums(A, z)
A |
adjacency matrix. |
z |
label vector. |
A K x L matrix with (k,l)-th element as sum_{i,j} A_{i,j} 1{z_i = k, z_j = l}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.