R/utils-elist.R

Defines functions elist2arcs arcs2elist

# convert a set of arcs to a (real) edge list.
arcs2elist = function(arcs, nodes, weights = NULL, nid = TRUE, sublist = TRUE,
    parents = FALSE) {

  .Call(call_arcs2elist,
        arcs = arcs,
        nodes = nodes,
        weigths = weights,
        nid = nid,
        sublist = sublist,
        parents = parents)

}#ARCS2ELIST

# convert an edge list into an arc set.
elist2arcs = function(elist) {

  .Call(call_elist2arcs,
        elist = elist)

}#ELIST2ARCS

Try the bnlearn package in your browser

Any scripts or data that you put into this service are public.

bnlearn documentation built on Sept. 7, 2021, 1:07 a.m.