BALL
1.4.79
|
#include <BALL/DATATYPE/GRAPH/treeWidth.h>
Public Types | |
typedef TreeWidth < OriginalGraphType > ::TreeDecomposition | TreeDecomposition |
typedef TreeWidth < OriginalGraphType > ::TreeDecompositionBag | TreeDecompositionBag |
typedef TreeWidth < OriginalGraphType > ::TreeDecompositionGraph | TreeDecompositionGraph |
typedef TreeWidth < OriginalGraphType > ::OriginalVertexType | OriginalVertexType |
typedef std::set < OriginalVertexType > | TreeDecompositionContent |
Public Member Functions | |
boost::shared_ptr < TreeDecomposition > | operator() (UndirectedGraph const &graph, EliminationOrder const &permutation) |
boost::shared_ptr < TreeDecomposition > | makeNice (boost::shared_ptr< TreeDecompositionGraph > &nice_tree) |
TreeDecompositionBag | operator() (TreeDecompositionBag n, typename std::vector< TreeDecompositionBag >::iterator c_i, typename std::vector< TreeDecompositionBag >::iterator c_end) |
Protected Member Functions | |
TreeDecompositionBag | buildRoot_ (TreeDecompositionBag child) |
TreeDecompositionBag | buildLeaf_ (TreeDecompositionBag child) |
TreeDecompositionBag | buildJoin_ (TreeDecompositionBag node, TreeDecompositionBag left, TreeDecompositionBag right, bool do_forget) |
TreeDecompositionBag | buildSingle_ (TreeDecompositionBag node, int node_type, TreeDecompositionBag child) |
TreeDecompositionBag | buildLinkage_ (TreeDecompositionBag node, TreeDecompositionBag child) |
TreeDecompositionBag | linkWithIntroduceNodes_ (TreeDecompositionContent parent_set, TreeDecompositionBag child) |
TreeDecompositionBag | linkWithForgetNodes_ (TreeDecompositionContent parent_set, TreeDecompositionBag child) |
TreeDecompositionBag | branch_ (TreeDecompositionBag node, int node_type, typename std::vector< TreeDecompositionBag >::iterator begin, typename std::vector< TreeDecompositionBag >::iterator end) |
Protected Attributes | |
boost::shared_ptr < TreeDecomposition > | tree_ |
boost::shared_ptr < TreeDecompositionGraph > | tree_graph_ |
boost::shared_ptr < TreeDecompositionGraph > | nice_tree_ |
TreeDecompositionBag | root_ |
Definition at line 448 of file treeWidth.h.
typedef TreeWidth<OriginalGraphType>::OriginalVertexType BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::OriginalVertexType |
Definition at line 455 of file treeWidth.h.
typedef TreeWidth<OriginalGraphType>::TreeDecomposition BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::TreeDecomposition |
Definition at line 451 of file treeWidth.h.
typedef TreeWidth<OriginalGraphType>::TreeDecompositionBag BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::TreeDecompositionBag |
Definition at line 452 of file treeWidth.h.
typedef std::set<OriginalVertexType> BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::TreeDecompositionContent |
Definition at line 457 of file treeWidth.h.
typedef TreeWidth<OriginalGraphType>::TreeDecompositionGraph BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::TreeDecompositionGraph |
Definition at line 453 of file treeWidth.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
boost::shared_ptr<TreeDecomposition> BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::makeNice | ( | boost::shared_ptr< TreeDecompositionGraph > & | nice_tree | ) |
Converts the TreeDecomposition into a NiceTreeDecomposition A nice tree decomposition is a binary tree with five vertex types:
boost::shared_ptr<TreeDecomposition> BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::operator() | ( | UndirectedGraph const & | graph, |
EliminationOrder const & | permutation | ||
) |
Builds a tree decomposition by the given elimination order
graph | The source graph for which the tree decomposition is built |
permutation | the elimination order which is used to build the tree |
TreeDecompositionBag BALL::TreeWidthImplementation< EditableGraph >::TreeDecompositionBuilder< OriginalGraphType >::operator() | ( | TreeDecompositionBag | n, |
typename std::vector< TreeDecompositionBag >::iterator | c_i, | ||
typename std::vector< TreeDecompositionBag >::iterator | c_end | ||
) |
|
protected |
Definition at line 501 of file treeWidth.h.
|
protected |
Definition at line 503 of file treeWidth.h.
|
protected |
Definition at line 499 of file treeWidth.h.
|
protected |
Definition at line 500 of file treeWidth.h.