View source: R/motifadjacency.R
build_motif_adjacency_matrix | R Documentation |
Build a motif adjacency matrix from an adjacency matrix.
build_motif_adjacency_matrix( adj_mat, motif_name, motif_type = c("struc", "func"), mam_weight_type = c("unweighted", "mean", "poisson"), mam_method = c("sparse", "dense") )
adj_mat |
Adjacency matrix from which to build the motif adjacency matrix. |
motif_name |
Motif used for the motif adjacency matrix. |
motif_type |
Type of motif adjacency matrix to build.
One of |
mam_weight_type |
The weighting scheme to use.
One of |
mam_method |
Which formulation to use.
One of |
Entry (i, j) of a motif adjacency matrix is the sum of the weights of all motifs containing both nodes i and j. The motif is specified by name and the type of motif instance can be one of:
Functional: motifs should appear as subgraphs.
Structural: motifs should appear as induced subgraphs.
The weighting scheme can be one of:
Unweighted: the weight of any motif instance is one.
Mean: the weight of any motif instance is the mean of its edge weights.
Product: the weight of any motif instance is the product of its edge weights.
A motif adjacency matrix.
adj_mat <- matrix(c(1:9), nrow = 3) build_motif_adjacency_matrix(adj_mat, "M1", "func", "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.