getADJNetDen: getADJNetDen function

View source: R/followingNetwork.R

getADJNetDenR Documentation

getADJNetDen function

Description

getADJNetDen is a support function for calculating a network density of a network.

Usage

getADJNetDen(adjMat)

Arguments

adjMat

is an adjacency matrix of a dominant-distribution network.

Value

This function returns a value of network density of of a network for a given adjMat.

Examples


# Given an example of adjacency matrix
A<-matrix(FALSE,5,5)
A[2,1]<-TRUE
A[c(3,4),2]<-TRUE

# Get a network density of an adjacency matrix

getADJNetDen(adjMat=A)


mFLICA documentation built on June 22, 2024, 11:33 a.m.