3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00

Refactor network_flow

Use a template method for pretty printing
This commit is contained in:
Anh-Dung Phan 2013-10-30 10:04:56 -07:00
parent 42cbbe830e
commit 49aba844b8
2 changed files with 22 additions and 47 deletions

View file

@ -35,11 +35,8 @@ Notes:
namespace smt {
template<typename T>
std::string pp_vector(std::string const & label, svector<T> v, bool has_header = false);
template<typename T>
std::string pp_vector(std::string const & label, vector<T> v, bool has_header = false);
template<typename TV>
std::string pp_vector(std::string const & label, TV v, bool has_header = false);
// Solve minimum cost flow problem using Network Simplex algorithm
template<typename Ext>
@ -91,7 +88,7 @@ namespace smt {
// Initialize the network with a feasible spanning tree
void initialize();
bool get_edge_id(dl_var source, dl_var target, edge_id & id);
edge_id get_edge_id(dl_var source, dl_var target);
void update_potentials();