adj2vector: Transform the adjacency matrix to a vector

View source: R/DASC.R

adj2vectorR 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)


aayushraman/DASC documentation built on May 9, 2023, 12:03 a.m.