Definition at line 1217 of file subcircuit.cc.
SubCircuit::SolverWorker::NodeSet::NodeSet |
( |
std::string |
graphId, |
|
|
int |
node1, |
|
|
int |
node2 |
|
) |
| |
|
inline |
SubCircuit::SolverWorker::NodeSet::NodeSet |
( |
std::string |
graphId, |
|
|
const std::vector< int > & |
nodes |
|
) |
| |
|
inline |
void SubCircuit::SolverWorker::NodeSet::extend |
( |
const NodeSet & |
other | ) |
|
|
inline |
Definition at line 1230 of file subcircuit.cc.
1231 assert(this->
graphId == other.graphId);
1232 for (
int node : other.nodes)
int SubCircuit::SolverWorker::NodeSet::extendCandidate |
( |
const NodeSet & |
other | ) |
const |
|
inline |
Definition at line 1235 of file subcircuit.cc.
1239 bool intersect =
false;
1240 for (
int node : other.nodes)
1241 if (
nodes.count(node) > 0)
1245 return intersect ? newNodes : 0;
bool SubCircuit::SolverWorker::NodeSet::operator< |
( |
const NodeSet & |
other | ) |
const |
|
inline |
std::string SubCircuit::SolverWorker::NodeSet::to_string |
( |
| ) |
const |
|
inline |
Definition at line 1252 of file subcircuit.cc.
1253 std::string str =
graphId +
"(";
1255 for (
int node :
nodes) {
1256 str +=
my_stringf(
"%s%d", first ?
"" :
" ", node);
static std::string my_stringf(const char *fmt,...)
std::string SubCircuit::SolverWorker::NodeSet::graphId |
std::set<int> SubCircuit::SolverWorker::NodeSet::nodes |
The documentation for this struct was generated from the following file: