Network-class {agena.ai}R Documentation

BN Network object

Description

These represent each network in a BN. Networks consist of nodes and in a BN model there might be more than one network. These networks can also be linked to each other with the use of input and output nodes. For such links, see Model$networkLinks.

Fields

id

network id

name

network display name

description

network description

nodes

list of nodes in the network

Methods

add_node(newNode)

A method to add new Node objects to a Network. Note that adding a new Node to the network does not automatically add its parents to the network. You need to add all the parents separately too.

initialize(id, name = NULL, description = NULL, nodes = NULL)

Creates a new Network object, a unique id is required, other fields are filled with defauls unless specified.

plot()

A method to plot the graphical structure of a BN network.

remove_node(oldNode)

A method to remove an existing Node object from the network. Note that removing a Node from a network does not automatically remove it from its previous parent-child relationships in the network. You need to adjust such relationships separately on the Node level.


[Package agena.ai version 1.1.1 Index]