get.nodes: Get the nodes of a gRaven domain

View source: R/graven.R

get.nodesR Documentation

Get the nodes of a gRaven domain

Description

Get the nodes of a gRaven domain

Usage

get.nodes(domain)

Arguments

domain

name of gRaven domain

Details

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

Value

Character vector of node names.

Author(s)

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

Examples

demo("chest",package="gRaven",echo=FALSE)
get.nodes(chest)
chest$states
sapply(get.nodes(chest),function(x) get.parents(chest,x))

gRaven documentation built on Oct. 11, 2024, 9:06 a.m.