Description Usage Arguments Value

Construct an affinity matrix for a graph g based on the dist edge attribute

1 | ```
affinity_matrix(g, sigma = 1, pop_weights = FALSE)
``` |

`g` |
an igraph::graph with a dist edge attribute/ |

`sigma` |
the multiplicative constant in the quadratic exponential affinity kernel |

a matrix containing the affinities computed with the quadratic exponential affinity kernel

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.