getWRW1Mat: Compute RW1 precision matrix on a river network

View source: R/rc_Qfuncs.R

getWRW1MatR Documentation

Compute RW1 precision matrix on a river network

Description

Returns the laplacian matrix of a graph. If weights are supplied then the weighted lacplacian is returned. Sensible weights are based on the flows of the incoming upstream graph edges.

Usage

getWRW1Mat(g, weights = NULL)

Arguments

g

an igraph graph specifying the dependence structure

weights

weights to be applied to the edges of the graph (see details)

Details

Weights argument is passed onto the graph.laplacian function from the igraph package. If weights is NULL (default) and the graph has an edge attribute called weight, then it will be used automatically. Set this to NA if you want the unweighted Laplacian on a graph that has a weight edge attribute.

Value

what does it return


Faskally/rc documentation built on Sept. 21, 2023, 1:16 p.m.