public:
typedef unsigned NodeId;
typedef unsigned EdgeId;
+
+ /// \brief Returns a value representing an invalid (non-existant) node.
+ static NodeId invalidNodeId() {
+ return std::numeric_limits<NodeId>::max();
+ }
+
+ /// \brief Returns a value representing an invalid (non-existant) edge.
+ static EdgeId invalidEdgeId() {
+ return std::numeric_limits<EdgeId>::max();
+ }
};
/// PBQP Graph class.
return E.getN1Id();
}
- /// \brief Returns a value representing an invalid (non-existant) node.
- static NodeId invalidNodeId() {
- return std::numeric_limits<NodeId>::max();
- }
-
- /// \brief Returns a value representing an invalid (non-existant) edge.
- static EdgeId invalidEdgeId() {
- return std::numeric_limits<EdgeId>::max();
- }
-
/// \brief Get the edge connecting two nodes.
/// @param N1Id First node id.
/// @param N2Id Second node id.