Learn R Programming

gRaven (version 1.1.10)

add.edge: Add or Delete Edge(s) in a gRaven domain

Description

Add or delete a directed edge from one or more parents.

Usage

add.edge(domain, child, parent)
delete.edge(domain, child, parent)

Value

a NULL value is invisibly returned.

Arguments

domain

name of a gRaven domain

child

a character string containing the name of the child node.

parent

a character string specifying by name the parent nodes

Differences from RHugin

Deleting an edge nullifies the CPT for node n, if any.

Author

Peter J. Green, P.J.Green@bristol.ac.uk

Details

Emulates function of the same name in the RHugin package by calls to gRain functions

Examples

Run this code
demo(chest.setup,package="gRaven")
chest
delete.edge(chest,"tub","asia")
add.edge(chest,"bronc","asia")
chest

Run the code above in your browser using DataLab