powered by
Calculate number of triangles of a network
ntriangles(x)
square matrix (adjacency matrix)
scaler, number of triangles
This function calculates the number of triangles in a network given an adjacency matrix. We use igraph for this.
# NOT RUN { ntriangles(beach[[1]][, ]) # }
Run the code above in your browser using DataLab