Learn R Programming

gRaven (version 1.1.10)

get.nodes: Get the nodes of a gRaven domain

Description

Get the nodes of a gRaven domain

Usage

get.nodes(domain)

Value

Character vector of node names.

Arguments

domain

name of gRaven domain

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",package="gRaven",echo=FALSE)
get.nodes(chest)
chest$states
sapply(get.nodes(chest),function(x) get.parents(chest,x))

Run the code above in your browser using DataLab