NetCen: Compute the centrality metrics for the nodes composing the...

View source: R/NetCen.R

NetCenR Documentation

Compute the centrality metrics for the nodes composing the network generated by the NetVis function

Description

Compute the centrality metrics for the nodes composing the network generated by the NetVis function

Usage

NetCen(data, g1, g2)

Arguments

data

A data frame containing the relationship between the two groups to be represented in the network

g1

Name of the column containing the labels of the first group that will be used to create the network

g2

Name of the column containing the labels of the second group that will be used to create the network

Details

This function returns the following centrality metrics for each node that composed the network: Degree (The number of edges incident to the node), Betweenness (The fraction of shortest paths between pairs of nodes that pass through the node), Closeness (The inverse of the sum of the shortest path distances from the node to all other nodes), and Eigenvector Centrality (The centrality measure based on the eigenvector of the adjacency matrix).

Value

A data frame with the centrality metrics for each node in the network.


GALLO documentation built on June 22, 2024, 9:17 a.m.