sqrt_WDiag: Diagonal, m by m, weight matrix with 'sqrt(w_e)' on the...

View source: R/EffRSparse.R

sqrt_WDiagR Documentation

Diagonal, m by m, weight matrix with sqrt(w_e) on the diagonal.

Description

Calculate the m by m diagonal weight matrix, W, for an inputted graph with sqrt(w_e) on the diagonal.

Usage

sqrt_WDiag(weights)

Arguments

weights

List of edges corresponding to edge list.

Details

Intended as internal function.

Value

Return diagonal weight matrix, W, with √(w_e) on the diagonal.

Author(s)

Alexander Mercier


simplifyNet documentation built on Nov. 15, 2022, 5:05 p.m.