Utility for specifying known root and leaf nodes in a network, to be used
in conjunction with the blacklist argument of network estimation
methods.
specify.prior(roots = NULL, leaves = NULL, nodes, indices = FALSE)Vector of root nodes. May be character or integer.
Vector of leaf nodes. May be character or integer.
Full vector of node names of the entire network. Both
roots and leaves must be a subset of this vector.
Logical: Return indices or character names?
Builds an (m+k)x2 matrix, where m is the number of user-specified root nodes and k is the number of user-specified leaf nodes.
A root node is any node without any parents, i.e. with no incoming edges.
A leaf node is any node without any children, i.e. with no outgoing edges.