Addressed PR comments by @daniel-j-h and @oxidase

This commit is contained in:
Patrick Niklaus
2017-03-01 20:17:34 +00:00
committed by Patrick Niklaus
parent a901bda41e
commit 3f485ac09b
13 changed files with 24 additions and 82 deletions
+6
View File
@@ -145,6 +145,12 @@ class BinaryHeap
return inserted_nodes[index].weight;
}
const Weight &GetKey(NodeID node) const
{
const Key index = node_index.peek_index(node);
return inserted_nodes[index].weight;
}
bool WasRemoved(const NodeID node) const
{
BOOST_ASSERT(WasInserted(node));