ceg2adjmat: Ceg to adjmat of graph

View source: R/7-ceg-functions.R

ceg2adjmatR Documentation

Ceg to adjmat of graph

Description

Obtain the adjacency matrix corresponding to a CEG.

Usage

ceg2adjmat(x)

Arguments

x

an object of class ceg.

Details

This utility function can be used to prepare the adjacency matrix to plot the CEG using a graph package (e.g. igraph).

Value

the adj matrix

Examples

model <- stages_fbhc(full(PhDArticles))
model.ceg <- ceg(model)
ceg2adjmat(model.ceg)

stagedtrees documentation built on April 29, 2022, 1:06 a.m.