Dependence graph. More...
#include <CouenneDepGraph.hpp>
Public Member Functions | |
DepGraph () | |
constructor More... | |
~DepGraph () | |
destructor More... | |
std::set< DepNode *, compNode > & | Vertices () |
return vertex set More... | |
int & | Counter () |
node index counter More... | |
void | insert (exprVar *) |
insert new variable if new More... | |
void | insert (exprAux *) |
insert new auxiliary if new More... | |
void | erase (exprVar *) |
delete element More... | |
bool | depends (int, int, bool=false) |
does w depend on x? More... | |
void | createOrder () |
assign numbering to all nodes of graph More... | |
void | print (bool descend=false) |
debugging procedure More... | |
DepNode * | lookup (int index) |
search for node in vertex set More... | |
bool | checkCycles () |
check for dependence cycles in graph More... | |
void | replaceIndex (int oldVar, int newVar) |
replace, throughout the whole graph, the index of a variable with another in the entire graph. More... | |
Protected Attributes | |
std::set< DepNode *, compNode > | vertices_ |
set of variable nodes More... | |
int | counter_ |
counter to assign numbering to all nodes More... | |
Dependence graph.
Shows dependence of auxiliary variable on other (auxiliary and/or original) variables
Definition at line 115 of file CouenneDepGraph.hpp.
|
inline |
constructor
Definition at line 128 of file CouenneDepGraph.hpp.
|
inline |
destructor
Definition at line 131 of file CouenneDepGraph.hpp.
return vertex set
Definition at line 138 of file CouenneDepGraph.hpp.
|
inline |
node index counter
Definition at line 142 of file CouenneDepGraph.hpp.
insert new variable if new
Definition at line 129 of file depGraph.cpp.
insert new auxiliary if new
Definition at line 141 of file depGraph.cpp.
does w depend on x?
Definition at line 170 of file depGraph.cpp.
void DepGraph::createOrder | ( | ) |
assign numbering to all nodes of graph
Definition at line 185 of file depGraph.cpp.
void DepGraph::print | ( | bool | descend = false | ) |
debugging procedure
Definition at line 194 of file depGraph.cpp.
search for node in vertex set
Definition at line 206 of file depGraph.cpp.
bool DepGraph::checkCycles | ( | ) |
check for dependence cycles in graph
check for cycles in dependence graph
Definition at line 22 of file checkCycles.cpp.
replace, throughout the whole graph, the index of a variable with another in the entire graph.
Used when redundant constraints w := x are discovered
Definition at line 220 of file depGraph.cpp.
set of variable nodes
Definition at line 120 of file CouenneDepGraph.hpp.
|
protected |
counter to assign numbering to all nodes
Definition at line 123 of file CouenneDepGraph.hpp.