constraints.matrix {HEMDAG} | R Documentation |
Constraints matrix
Description
Return 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
constraints.matrix(g)
Arguments
g |
a graph of class |
Value
A constraints matrix w.r.t the graph g
.
Examples
data(graph);
m <- constraints.matrix(g);
[Package HEMDAG version 2.7.4 Index]