calculNetStats: Calculate, create a table and plot statistics

View source: R/NetworkComparisonFunctions.R

calculNetStatsR Documentation

Calculate, create a table and plot statistics

Description

The function calculNetStats serves to calculate, create a table and plot the following statistics:

  • Density (no self loops are considered)

  • Diameter (if there is more than one connected component, the largest diameter will be returned, independently of the size of the connected component)

  • Average degree

  • Average path length

  • Clustering coefficient (the networks are considered as undirected) It also plots the degree distribution, and upset plots of the overlap of nodes and edges reads all the networks stored in a given directory

Usage

calculNetStats(net)

Arguments

net

list, igraph objects, as returned by readNet()

Value

Data frame with the statistics

Author(s)

Elva Novoa, elva-maria.novoa-del-toro@inrae.fr

Examples

# See the NetworkComparison vignette


MetClassNet/MetClassNetR documentation built on June 30, 2023, 2:12 p.m.