mirror of
https://github.com/Z3Prover/z3
synced 2025-08-02 09:20:22 +00:00
start working on network flow
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d6f0c13f2a
commit
a1a8aad09b
5 changed files with 77 additions and 80 deletions
|
@ -43,19 +43,18 @@ namespace smt {
|
|||
}
|
||||
|
||||
class spanning_tree_base {
|
||||
private:
|
||||
typedef int node;
|
||||
|
||||
public:
|
||||
typedef int node_id;
|
||||
typedef int edge_id;
|
||||
virtual void initialize(svector<edge_id> const & tree) = 0;
|
||||
virtual void get_descendants(node start, svector<node> & descendants) = 0;
|
||||
virtual void get_descendants(node_id start, svector<node_id> & descendants) = 0;
|
||||
|
||||
virtual void update(edge_id enter_id, edge_id leave_id) = 0;
|
||||
virtual void get_path(node start, node end, svector<edge_id> & path, svector<bool> & against) = 0;
|
||||
virtual bool in_subtree_t2(node child) = 0;
|
||||
virtual void get_path(node_id start, node_id end, svector<edge_id> & path, svector<bool> & against) = 0;
|
||||
virtual bool in_subtree_t2(node_id child) = 0;
|
||||
|
||||
virtual bool check_well_formed() = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue