closeness.inv: Calculates differences in closeness for each network node

View source: R/SourceCodePTNWNeu.R

closeness.invR Documentation

Calculates differences in closeness for each network node

Description

This function calculates the differences in closeness for each node between two networks (adjacency matrices of the same dimension).

Usage

closeness.inv(X, Y)

Arguments

X, Y

adjacency matrices of the same dimension

Details

This function calculates the differences in closeness for each node between two networks (adjacency matrices of the same dimension). Differences in closeness are one of the node-specific network difference characteristics to compare two networks.

Value

a vector of length N (number of nodes), containing the differences in closeness between the two networks for each node

Examples

X<-create.adjacency.matrix(ExDataA,methodlist=list("Spearman"))
Y<-create.adjacency.matrix(ExDataB,methodlist=list("Spearman"))
closeness.inv(X,Y)

RomanSchefzik/DNT documentation built on Sept. 11, 2022, 10:29 p.m.