Description Usage Arguments Value

View source: R/Get_template_matrix.R

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)

1 | ```
Get_template_matrix(SeedNodes, allPairs)
``` |

`FromNodes, ` |
allPairs |

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

richrr/TransNetDemo documentation built on May 25, 2017, 3:17 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.