constraints.matrix: Constraints Matrix

Description Usage Arguments Value Examples

View source: R/graph.utility.R

Description

This function returns a matrix with two columns and as many rows as there are edges. The entries of the first columns are the index of the node the edge comes from (i.e. children nodes), the entries of the second columns indicate the index of node the edge is to (i.e. parents nodes). Referring to a DAG this matrix defines a partial order.

Usage

1

Arguments

g

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

Value

a constraints matrix w.r.t the graph g.

Examples

1
2
data(graph);
m <- constraints.matrix(g);

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