cnMatParents-method {catnet} | 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, P. Salzman
library(catnet) cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2) cnMatParents(object=cnet)