Extract the connections from Network

The engine.
Post Reply
borisrabin
Posts: 24
Joined: Thu Sep 30, 2010 7:48 pm

Extract the connections from Network

Post by borisrabin »

Hello,


After i learned network using SMILE or GeNIe, How i can extract all the edges between all the network's nodes ?
At another words how i store which node connected to another from the Network (in some matrix/text for example)?

Thanks,
Boris
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: Extract the connections from Network

Post by shooltz[BayesFusion] »

borisrabin wrote:After i learned network using SMILE or GeNIe, How i can extract all the edges between all the network's nodes ?
At another words how i store which node connected to another from the Network (in some matrix/text for example)?
From Smile.NET call Network.GetParents or Network.GetChildren for each node to obtain an array of node handles. GetParentIds and GetChildIds will give you the node identifiers. Use Network.GetAllNodes and Network.GetAllNodeIds to iterate over all nodes in the network.
Post Reply