MCPcopy Create free account
hub / github.com/Gecode/gecode / pathUp

Method pathUp

gecode/gist/visualnode.cpp:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 void VisualNode::pathUp(const NodeAllocator& na) {
128 VisualNode* cur = this;
129 while (cur) {
130 cur->setOnPath(true);
131 cur = cur->getParent(na);
132 }
133 }
134
135 void VisualNode::unPathUp(const NodeAllocator& na) {
136 VisualNode* cur = this;

Callers 1

setPathMethod · 0.80

Calls 2

setOnPathMethod · 0.80
getParentMethod · 0.80

Tested by

no test coverage detected