View source: R/spatial_weights.R
pairwise_adjacency | R Documentation |
This function computes a pairwise adjacency matrix for multiple graphs with a given set of spatial coordinates and feature vectors. The function takes two user-defined functions to compute within-graph and between-graph similarity measures.
pairwise_adjacency(Xcoords, Xfeats, fself, fbetween)
Xcoords |
A list of numeric matrices or data.frames containing the spatial coordinates of the nodes of each graph. |
Xfeats |
A list of numeric matrices or data.frames containing the feature vectors for the nodes of each graph. |
fself |
A function that computes similarity for nodes within the same graph (e.g., Xi_1, Xi_2). |
fbetween |
A function that computes similarity for nodes across graphs (e.g., Xi_1, Xj_1). |
A sparse matrix representing the pairwise adjacency matrix for the input graphs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.