Description Usage Arguments Details Value Author(s) Examples
Returns a sub-network of a given catNetwork
object.
1 | cnSubNetwork(object, nodeIndices, indirectEdges)
|
object |
a |
nodeIndices |
a |
indirectEdges |
a |
The function creates a new network from a given one using a subset of its nodes, specified by nodeIndices
.
If indirectIndices
is set to TRUE,
then the resulting network contains edges between all nodes
that are connected by chains of directed edges in the original one.
The default value of indirectIndices
is FALSE,
thus the new set of edges is subset of the original one.
A catNetwork
object.
N. Balov
1 2 3 4 | cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2)
cnet1 <- cnSubNetwork(object=cnet, nodeIndices=c(1,2,3,4,5), indirectEdges=TRUE)
cnNodes(object=cnet)
cnNodes(object=cnet1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.