ntriangles {dnr}R Documentation

ntriangles

Description

Calculate number of triangles of a network

Usage

ntriangles(x)

Arguments

x

square matrix (adjacency matrix)

Details

This function calculates the number of triangles in a network given an adjacency matrix. We use igraph for this.

Value

scaler, number of triangles

Author(s)

Abhirup

Examples

ntriangles(beach[[1]][, ])

[Package dnr version 0.3.5 Index]