coerce_models: Coerce models to different representations

coerce_modelsR Documentation

Coerce models to different representations

Description

Coerce models to different representations

Usage

as_emat2cq(emat, nvar = NULL)

as_emat_complement(emat, nvar)

as_emat2amat(emat, d)

as_emat2elist(emat)

as_elist2emat(elist)

as_glist2emat(glist)

as_glist2cq(glist)

as_glist2graph(glist, d)

as_glist2igraph(glist, d)

as_emat2graph(emat, d)

as_emat2igraph(emat, d)

as_amat2emat(amat, eps = 1e-04)

as_emat2glist(emat)

as_glist2out_edges(glist)

as_K2amat(K, eps = 1e-04)

as_K2graph(K)

as_sparse(K)

Arguments

emat

Edge matrix (2 x p)

nvar

Number of variables

d

Number of columns in output.

elist

Edge list (list of pairs)

glist

Generator list

amat

Adjacency matrix

eps

Small number

glist <- list(c(1,2,3),c(2,3,4),c(5,6)) em <- as_glist2emat(glist) am <- as_emat2amat(em, d=6) ig <- as_emat2igraph(em) el <- as_emat2elist(em) igraph::max_cliques(ig) as_emat2cq(em, 6) as_emat_complement(em, 6)

K

Concentration matrix


gRim documentation built on Oct. 16, 2024, 1:07 a.m.