compose_coarsening | R Documentation |
Given the results of two consecutive passes of the REC coarsening, this function composes them to produce a single equivalent coarsening mapping and corresponding coarsened matrices.
compose_coarsening(pass1, pass2)
pass1 |
A list containing 'C', 'W_c', 'L_c', and 'mapping' from the first coarsening pass. |
pass2 |
A list containing 'C', 'W_c', 'L_c', and 'mapping' from the second coarsening pass. |
A list with elements:
The final coarsening matrix mapping from the original graph to the final coarsened graph.
The final coarsened adjacency matrix.
The final coarsened Laplacian matrix.
An integer vector mapping original vertices directly to the final coarsened vertices.
# Suppose you have run:
# result1 <- rec_coarsen(W, T=..., ...)
# result2 <- rec_coarsen(result1$W_c, T=..., ...)
# Now compose:
# composed_result <- compose_coarsening(result1, result2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.