MinNeighbors#

class pgmpy.inference.EliminationOrder.MinNeighbors(model)[source]#

Bases: BaseEliminationOrder

cost(node)[source]#

The cost of eliminating a node is the number of neighbors it has in the current graph.