add.edge {gRaven}R Documentation

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)

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

Details

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

Value

a NULL value is invisibly returned.

Differences from RHugin

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

Author(s)

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

Examples

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

[Package gRaven version 1.1.8 Index]