| NORSYS SOFTWARE © 2012 | NETICA API | C VERSION 5.04

void SetNodeStateComment_bn ( | node_bn* node, state_bn state, const char* comment )

Gives the comment comment to that state of node whose index is state.

state must be between 0 and one less than the number that would be returned by GetNodeNumberStates_bn, inclusive.

There is no restriction on the length of the comment, or on what characters it might contain. node may have some states commented, and others not.

Discretized continuous nodes may have their states commented, as well as regular discrete nodes.

Passing NULL for comment will remove the comment of that state only.

Netica will make a copy of comment; it won't modify or free the passed string.

Version:

Versions 2.26 and later have this function.

See also:

GetNodeStateComment_bn |  | Get the existing state comment if there is one
SetNodeStateTitle_bn |  | Sets the state's title
GetNodeNumberStates_bn |  | state must be between 0 and one less than this, inclusive