A tree width selector that prefer nodes with the smallest degree. ! More...
#include <treedex.h>
Public Member Functions | |
TreeWidthNodeSelectorMinDegree (MyGraph &g) | |
virtual void | initialise () |
Initialise the node selector. | |
virtual MyNodeId | getNextNode () |
Return the id of the next node and delete it internally. | |
virtual void | update (MyNodeId deletedNodeId, set< NodeId > &neighbours) |
Protected Attributes | |
unsigned int | _minDegree |
vector< list< MyNodeId > > | _degreeLists |
map< MyNodeId, list< MyNodeId > ::iterator > | _nodePositions |
A tree width selector that prefer nodes with the smallest degree. !
virtual void TreeDecomposition::TreeWidthNodeSelectorMinDegree::update | ( | MyNodeId | deletedNodeId, |
set< NodeId > & | neighbours | ||
) | [inline, virtual] |
Update the node selector based on the deletedNode and the neighbours of the deletedNode.
Implements TreeDecomposition::TreeWidthNodeSelector.