graphUpdate: Graph Update

Description Usage Arguments Value Author(s) Examples

Description

Update the graph by removing a set of vertices

Usage

1
graphUpdate(w, G, vec01)

Arguments

w

a numeric vector of vertex weights

G

a matrix of transition weights

vec01

a binary vector indicating the set of vertices planned to be removed: the vertex corresponding to the zeros in this vector will be removed

Value

a list of one updated vertex weight vector, one updated transition weight matrix, and a binory TRUE/FALSE indicater to show whether a node has been removed

Author(s)

Jiangtao Gou

Examples

1
2
3
4
w <- c(0.1,0.2,0.3,0.4)
G <- matrix(c(0,0.3,0.3,0.4, 0.6,0,0.2,0.2, 0.5,0.2,0,0.3, 0.3,0.4,0.3,0),nrow=4,byrow=TRUE)
vec01 <- c(1,0,0,1)
graphUpdate(w=w,G=G,vec01=vec01)

regrap documentation built on July 8, 2020, 6:24 p.m.

Related to graphUpdate in regrap...