Description Usage Arguments Details Value See Also
View source: R/parents-table.R
Finds the rows of a parentsTable that correspond to
parent sets that could be added as parents of node
node
, given some set of nodes
nonDescendants
that can be added as parents
without creating a cycle in the graph.
1 2 3 | whichParentSetRows(node, nonDescendants,
needOneOf = NULL, numberOfNodes, allRows,
rowsThatContain, blankBit)
|
node |
The node. A numeric vector of length 1. |
nonDescendants |
The nodes that can be added as
descendants of |
needOneOf |
Nodes the MUST be included as parents of the node. This is NOT the same as the required/banned list; this is to allow the space to be partitioned. |
numberOfNodes |
The number of nodes in the network. A numeric vector of length 1. |
allRows |
The vector 1:nrow(parentsTables). (Supplied as an argument for possible speed gain) |
rowsThatContain |
A list of the form created by
|
Note that nodes that are banned do not need to be
accounted for in the nonDescendants
argument,
since these should be accounted for when the parentsTable
is created. Required nodes must be included in
nonDescendants
.
A numeric vector.
enumerateParentsTable
,
scoreParentsTable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.