GetIndexingParents

The engine.
Post Reply
nikkne
Posts: 19
Joined: Tue Mar 18, 2008 8:03 pm

GetIndexingParents

Post by nikkne »

Hi,
Whenever I call this function, the returned set is empty, although the node has 5 parents.
According to the documentation, this function should return the list of node's indexing parents. IIUC, this means that the list should contain node's parents in the order they are used for setting the index/coordinate.

Cheers,
Nikola
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: GetIndexingParents

Post by shooltz[BayesFusion] »

Here's the definition of 'indexing parents' taken from http://genie.sis.pitt.edu/wiki/Brief_In ... e_Diagrams:
Indexing Parents
The results for each node will be indexed by its indexing parents. These indexing parents are the decision nodes and informational predecessors of decision nodes that are d-connected to the given node. A node is d-connected if it is not d-separated
Note that indexing parents are not determined until you call UpdateBeliefs (this also applies to other attributes in DSL_nodeValue-derived classes). They appear in GeNIe in at the "Value" page of node properties, as headers of the grid.

Finally, the list remark means that you need to use NumItems (not GetSize) when iterating over indexing parents.
Post Reply