Get_template_matrix: Get_template_matrix

Description Usage Arguments Value

View source: R/Get_template_matrix.R

Description

This function creates a matrix , with each entry recording for each node(in a column), if it appears(not 1 or 0, but a normalized number, since there can be more than one shortest path between a pair of nodes) in the shortest path between a pair of nodes(in a row), the rows contain all pairs of nodes between two groups. Thus the sum of each column is the betweeness centrality for the node(in that column)

Usage

1
Get_template_matrix(SeedNodes, allPairs)

Arguments

FromNodes,

allPairs

Value

A matrix with rownames (source-target) and column names as nodes from source nodes set.


richrr/TransNetDemo documentation built on Feb. 21, 2022, 8:49 a.m.