make.proposals: Make Proposals for Graph Modification

Description Usage Arguments Value Examples

Description

Add a directed edge between two vertices and check for acycliclity.

Usage

1
make.proposals(nw, blacklist = NULL, whitelist = NULL)

Arguments

nw

A mhnet network

blacklist

2-column matrix or data.frame with forbidden edges (vertices as numbers)

whitelist

2-column matrix or data.frame with compulsory edges (vertices as numbers)

Value

Three column matrix. First column code for a type of modification (1 is removal, 2 is addition, 3 is reversal).

Second and Third columns define edges to be modified.

Examples

1
2
3
4
rg <- bnlearn::tabu(learning.test)
nw <- import.bnlearn(rg)
make.proposals(nw)
make.proposals(nw, blacklist=data.frame(a=1:5,b=6), whitelist=data.frame(a=1,b=c(2,4)))

simecek/mhnet documentation built on May 29, 2019, 10:01 p.m.