vf3lib
vf3lib copied to clipboard
node_id limit question?
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 */