The description of the graph macro '\tikzgraphnodename' on p. 270 says:
\tikzgraphnodename
This macro expands to the name of the current node with the path.
It should say:
This macro expands to the name of the current node without the path.
Good catch. This is fixed now. Thank you for reporting.
Good catch. This is fixed now. Thank you for reporting.