nwfsort
) and for
making a network family unique (see the unique
method for
networkfamily
objects) are available.networkfamily(data,nw=network(data), prior=jointprior(nw),
trylist=vector("list",size(nw)), timetrace=TRUE)
## S3 method for class 'networkfamily':
print(x,...)
## S3 method for class 'networkfamily':
plot(x,layout=,
cexscale=5,arrowlength=0.1,sscale=7,...)
network
. This should be the
empty network for the set of variables.network
.jointprior
.maketrylist
.TRUE
, prints some timing
information on the screen.networkfamily
.rep(min(1+floor(sqrt(length(x))),5),2)
.sscale
.networkfamily
returns a list with two components,networkfamily
.maketrylist
.networkfamily
generates and learns all possible networks with
the nodes given as in the initial network nw
. This is done by
successively trying to generate the networks with all possible arrows
to/from each node (see addarrows
). If there is a ban list
present in nw
(see network
), then this is
respected, as are the restrictions described in insert
.
After generation of all possible networks, a test for cycles (see
cycletest
) is performed and only networks with directed
acyclic graphs are returned.network
,
genlatex
,
heuristic
,
nwfsort
,
unique.networkfamily
,
elementin
,
addarrows
,
cycletest
data(rats)
allrats <- getnetwork(networkfamily(rats))
plot(allrats)
print(allrats)
Run the code above in your browser using DataLab