edgMat: Generates a Random Adjacency or Edge Matrix

Description Usage Arguments Value Author(s)

View source: R/edgMat.R

Description

This function generates Random Adjacency or Edge Matrix of a specific size and degree of sparsity.

Usage

1
edgMat(matSiz, spa, upp = TRUE)

Arguments

matSiz

A scalar specifying the size of the matrix. As the result is a square matrix only a scalar is requiered.

spa

The degree of sparsity specified with a number from 0 to 1.

upp

An indicator indicating if the result should be an Upper Triangular Matrix. The default is TRUE.

Value

A Random Square Matrix encoding the Adjacency of vertices on a graph. If upp is TRUE (defualt) the result would by an upper triangular matrix.

Author(s)

Rene Gutierrez Marquez


Rene-Gutierrez/BayTenGraMod documentation built on Dec. 12, 2020, 11:24 a.m.