MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / any_order

Function any_order

cp-profiler/src/cpprofiler/utils/tree_utils.cpp:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147std::vector<NodeID> any_order(const NodeTree &tree)
148{
149
150 auto count = tree.nodeCount();
151 std::vector<NodeID> result;
152 result.reserve(count);
153
154 for (auto i = 0; i < count; ++i)
155 {
156 result.push_back(NodeID(i));
157 }
158
159 return result;
160}
161
162std::vector<NodeID> post_order(const NodeTree &tree)
163{

Callers 5

save_nogoodsFunction · 0.85
save_infoFunction · 0.85
initialPartitionFunction · 0.85
runSimilarShapesFunction · 0.85
debugCheckLayoutMethod · 0.85

Calls 2

NodeIDClass · 0.50
nodeCountMethod · 0.45

Tested by

no test coverage detected