Description Usage Arguments Value
View source: R/bipartite_matching_collapsed.R
This function performs graph matching between a bipartite and a unipartite graphs that are assumed to share a common set of vertices. The method performs an alignment of the edges of the unipartite graphs with the edges of a collapsed bipartite graph into a unipartite, following the collapsed representation selected.
1 2 3 4 5 6 | bipartite_matching_collapsed(
A,
B,
collapsed_method = c("omp", "corr", "cov", "glasso", "mb"),
seeds = NULL
)
|
A |
Adjacency matrix of the unipartite graph. |
B |
Bipartite graph incidence matrix, where rows correspond to the vertices in common with the unipartite graph. |
collapsed_method |
Collapsed representation for the bipartite graph. The options are one-mode projection (\textttomp), correlation (\textttcorr), covariance (\textttcov), graphical lasso (\textttglasso) or nodewise regression (\textttmb). |
seeds |
If some vertices have known correspondence, a vector containing the indexes of these vertices can be passed through this parameter, and the corresponding rows of A and B are assumed to be aligned. The algorithm will then match the remaining vertices. The default is NULL if no seeds are available. |
A permutation Q that approximately minimizes the difference between the edges of A and the collapsed B.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.