vf3lib icon indicating copy to clipboard operation
vf3lib copied to clipboard

node_id limit question?

Open samsonsite1 opened this issue 2 years ago • 0 comments

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 */

samsonsite1 avatar May 10 '23 18:05 samsonsite1