mat2vec.ix: Auxiliary function, gives mask for matrix for directed,...

Description Usage Arguments Value Examples

View source: R/matrixoperations.R

Description

Auxiliary function, gives mask for matrix for directed, undirected etc.

Usage

1
mat2vec.ix(mat, directed, selfloops)

Arguments

mat

matrix

directed

a boolean argument specifying whether object is directed or not.

selfloops

a boolean argument specifying whether the model should incorporate selfloops.

Value

a boolean matrix that can be used to mask adjacency matrices.

Examples

1
2

ghypernet documentation built on Oct. 15, 2021, 5:14 p.m.