ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
TreeDecomposition.cpp File Reference

Tree decomposition construction, manipulation, and I/O. More...

#include <cassert>
#include <set>
#include <algorithm>
#include <string>
#include <type_traits>
#include "TreeDecomposition.h"
#include "BooleanCircuit.h"
#include "PermutationStrategy.h"
#include "dDNNFTreeDecompositionBuilder.h"
Include dependency graph for TreeDecomposition.cpp:

Go to the source code of this file.

Functions

std::istream & operator>> (std::istream &in, TreeDecomposition &td)
 Read a tree decomposition in PACE challenge format.
 

Detailed Description

Tree decomposition construction, manipulation, and I/O.

Implements the TreeDecomposition class declared in TreeDecomposition.h:

The reroot() helper and addEmptyBag(), addGateToBag(), findGateConnection() are private utilities for tree restructuring.

Definition in file TreeDecomposition.cpp.

Function Documentation

◆ operator>>()

std::istream & operator>> ( std::istream &  in,
TreeDecomposition td 
)

Read a tree decomposition in PACE challenge format.

Parameters
inInput stream.
tdTree decomposition to populate.
Returns
Reference to in.

Definition at line 232 of file TreeDecomposition.cpp.