int GetNodeNumberStates_bn ( const node_bn*  node )

Returns the number of states that node can take on, or zero if node is a continuous node that hasn't been discretized.

Version:

This function is available in all versions.

See also:

NewNode_bn    Sets the number of states for a discrete node
SetNodeLevels_bn    Sets the number and boundaries of discretization for a continuous node
GetNodeStateName_bn    

Example:

See the examples for SetNodeProbs_bn.