const nodelist_bn* GetNetElimOrder_bn ( const net_bn*  net )

Returns a list of the nodes of net in their "elimination order" (which is used for triangulation in the compilation of net), or NULL if there is no order currently associated with net.

Compiling a net, or using SetNetElimOrder_bn, can add an elimination ordering to a net, while changing the net structure, or using SetNetElimOrder_bn, can remove an ordering from the net.

Only appropriate nodes will be included in the list returned (for example, nodes of kind CONSTANT_NODE won't be).

If you need the list to persist, make a copy of the list returned (with DupNodeList_bn), since its contents may become invalid after further calls to Netica API. This is a list managed by Netica (declared const), so do not call any function to modify or free it (e.g., DeleteNodeList_bn).


This function is available in all versions.

See also:

SetNetElimOrder_bn    Sets it
SizeCompiledNet_bn    See how good the ordering is
ReportJunctionTree_bn    Analyze the effect of the order