adj2vector: Transform the adjacency matrix to a vector

Description Usage Arguments Value Author(s) Examples

View source: R/DASC.R

Description

Transform the adjacency matrix to a vector

Usage

1
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

1
2
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)

HaidYi/DASC documentation built on May 3, 2019, 6:42 p.m.