cnMatParents-method {sdnet} | R Documentation |
Returns the binary matrix of parent-child relations of a catNetwork
object.
cnMatParents(object, nodeorder)
object |
a |
nodeorder |
an integer |
The resulting matrix has a value 1
at row i
and column j
if
i
-th node has j
-th node as a parent, and 0
otherwise.
A matrix
N. Balov
cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2) cnMatParents(object=cnet)