clusteringCoef: Calculate the clustering coefficient of each node.

View source: R/betaMix.R

clusteringCoefR Documentation

Calculate the clustering coefficient of each node.

Description

Calculate the clustering coefficient of each node.

Usage

clusteringCoef(A)

Arguments

A

an adjacency Matrix (0/1).

Value

A vector with the clustering coefficient of each node.

Examples

## Not run: 
   data(SIM,package = "betaMix")
   res <- betaMix(betaMix::SIM, maxalpha = 1e-6,ppr = 0.01,subsamplesize = 30000, ind=TRUE)
   adjMat <- getAdjMat(res)
   clusteringCoef(adjMat)

## End(Not run)


haimbar/betaMix documentation built on Jan. 3, 2023, 12:54 p.m.