check.DAG.integrity: DAG checker

Description Usage Arguments Value Examples

View source: R/graph.utility.R

Description

This function assess the integrity of a DAG.

Usage

1
check.DAG.integrity(g, root = "00")

Arguments

g

a graph of class graphNEL. It represents the hierarchy of the classes.

root

name of the class that is on the top-level of the hierarchy (def. root="00").

Value

If all the nodes are accessible from the root "DAG is OK" is printed, otherwise a message error and the list of the not accessible nodes is printed on the stdout.

Examples

1
2
3
data(graph);
root <- root.node(g);
check.DAG.integrity(g, root=root);

gecko515/HEMDAG documentation built on Oct. 18, 2019, 6:34 a.m.