Typedef ng::node_id_t#
Defined in File types.h
Typedef Documentation#
-
using ng::node_id_t = std::array<char, NODE_ID_SIZE>#
A node is identified in a graph by a unique fixed-size array of characters. It is composed of:
A node type identifier (the last chunk of the node’s type qualifier).
A random index to ensure uniqueness within the node type. Both these elements are split with a ‘#’. Note that if the name is too long to fit the index, it will be truncated. The null ID is represented by an array full of 0s (null_node). The size of the node ID is defined by NODE_ID_SIZE. For example, for the node of type “ab.cd.ef”, the node ID could be “ef#6454” where 6454 is a random index. The last character will always be ‘\0’.