-void Node::set_promise(uint32_t i) {
- if (i>=promises.size())
- promises.resize(i+1,0);
- promises[i]=1;
+/**
+ * Sets a promise to explore meeting with the given node.
+ * @param i is the promise index.
+ */
+void Node::set_promise(unsigned int i) {
+ if (i >= promises.size())
+ promises.resize(i + 1, PROMISE_IGNORE);
+ promises[i] = PROMISE_UNFULFILLED;