int GetInputNamed_bn ( const char*  name,   const node_bn*  node )

Returns the link index number of the link whose name is name, or -1 if there isn't one with that name (case sensitive comparison). This is the same index as would be used to find the parent of the link in the node list returned by GetNodeParents_bn.

The value returned is particular to the node passed; another node may have a link with the same name, but a different link index.

Netica won't modify or free the passed name string.


In versions 1.17 and earlier, this function was named LinkNamed_bn.

In versions 1.18 to 3.04, this function was named InputNamed_bn.

See also:

GetNodeInputName_bn    (inverse function) Returns the name of a link given its index