View source: R/compareMetrics.R
| ntriangles | R Documentation |
Calculate number of triangles of a network
ntriangles(x)
x |
square matrix (adjacency matrix) |
This function calculates the number of triangles in a network given an adjacency matrix. We use igraph for this.
scaler, number of triangles
Abhirup
ntriangles(beach[[1]][, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.