Creates and returns a new net, initially having no nodes (use NewNode_bn to add nodes). If just nature nodes are added to this net, it will be a Bayes net, while if any decision nodes are also added, it will be a decision net.

The name of the new net will be name. It must be a legal IDname, which means it must have NAME_MAX_ns (30) or fewer characters, all of which are letters, digits or underscores, and it must start with a letter.

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