add.edge | R Documentation |
Add or delete a directed edge from one or more parents.
add.edge(domain, child, parent)
delete.edge(domain, child, parent)
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 |
Emulates function of the same name in the RHugin
package by calls to gRain
functions
a NULL value is invisibly returned.
Deleting an edge nullifies the CPT for node n, if any.
Peter J. Green, P.J.Green@bristol.ac.uk
demo(chest.setup,package="gRaven")
chest
delete.edge(chest,"tub","asia")
add.edge(chest,"bronc","asia")
chest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.