Returns true if the graph contains a node for a (single) variable.
Returns true if the graph contains a node for a (single) variable.
Gets the factor for a particular factor node.
Gets the factor for a particular factor node.
Gets the last message to a node from another.
Gets the last message to a node from another.
Get a list of messages to the node.
Get a list of messages to the node.
Returns all neighbors of a given node excluding the node of the second argument.
Returns all neighbors of a given node excluding the node of the second argument.
Returns all neighbors of a given node.
Returns all neighbors of a given node.
Returns all nodes in the factor graph.
Returns all nodes in the factor graph.
Returns a uniform factor.
Returns a uniform factor.
Updates the factor graph with a message from a node to another.
Updates the factor graph with a message from a node to another. Returns a new factor graph, which can be the same as this one.
The basic implementation of FactorGraph for Probabilistic factors in BP.