degree: Calculates the degree of a list of nodes

View source: R/bnlearn_compat.R

degreeR Documentation

Calculates the degree of a list of nodes

Description

#' Generic method for calculating the degree of a list of nodes in a BN or a DBN. Calls bnlearn's degree underneath. I have to redefine the generic and mask the original for it to work on both bn and dbn objects without the user having to import bnlearn.

Usage

degree(object, Nodes, ...)

Arguments

object

a "bn", "dbn", "bn.fit" or "dbn.fit" object

Nodes

which nodes to check

...

additional parameters

Value

the degree of the nodes


dbnR documentation built on Oct. 5, 2022, 1:07 a.m.