adj2vector {DASC}R Documentation

Transform the adjacency matrix to a vector

Description

Transform the adjacency matrix to a vector

Usage

adj2vector(Adjacency, n)

Arguments

Adjacency

the adjacency matrix of factor

n

number of samples

Value

w the vector of the adjacency matrix

Author(s)

Haidong Yi, Ayush T. Raman

Examples

W <- matrix(c(0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0),nrow=4)
w <- adj2vector(W,4)


[Package DASC version 1.1.0 Index]