You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm looking at both VF2 and VF3 libraries, and noticed VF2 node_id is limited to unsigned short, while VF3 is limited to unsigned int.
Is it ok to change VF2 node_id to unsigned int ?
Just out of curiosity, why was node_id limited to unsigned short?
Was this a memory concern or a speed concern?
// VF2
typedef unsigned short node_id;
const node_id NULL_NODE=0xFFFF;
// VF3
typedef uint32_t nodeID_t; /<Type for the id of the nodes in the graph */
const nodeID_t NULL_NODE = (std::numeric_limits<uint32_t>::max)(); /<Null node value */
The text was updated successfully, but these errors were encountered:
Hello,
I'm looking at both VF2 and VF3 libraries, and noticed VF2 node_id is limited to unsigned short, while VF3 is limited to unsigned int.
Is it ok to change VF2 node_id to unsigned int ?
Just out of curiosity, why was node_id limited to unsigned short?
Was this a memory concern or a speed concern?
// VF2
typedef unsigned short node_id;
const node_id NULL_NODE=0xFFFF;
// VF3
typedef uint32_t nodeID_t; /<Type for the id of the nodes in the graph */
const nodeID_t NULL_NODE = (std::numeric_limits<uint32_t>::max)(); /<Null node value */
The text was updated successfully, but these errors were encountered: