As Q406795 shows non-csname-able content in a label with the quotes/" syntax will raise an error message (but produces correct output) because \tikz@lg@local@node@handle uses the node's options in \tikzgraphsset without the first char setup so that \pgfkeysifdefined tries the whole "…" … as a key name.
As Q406795 shows non-csname-able content in a label with the
quotes
/"
syntax will raise an error message (but produces correct output) because\tikz@lg@local@node@handle
uses the node's options in\tikzgraphsset
without the first char setup so that\pgfkeysifdefined
tries the whole"…" …
as a key name.https://github.com/pgf-tikz/pgf/blob/d43fb104dadc1db7e2bcae6f02e0607078a98be1/tex/generic/pgf/frontendlayer/tikz/libraries/graphs/tikzlibrarygraphs.code.tex#L1207-L1214
Here, this can be easily solved by setting
"
to be gobbled:The
\tikz@lg@local@node@handle
macro is only used once https://github.com/pgf-tikz/pgf/blob/d43fb104dadc1db7e2bcae6f02e0607078a98be1/tex/generic/pgf/frontendlayer/tikz/libraries/graphs/tikzlibrarygraphs.code.tex#L1056 where it is executed inside a group so setting thefirst char syntax
should have no consequences.Though, I wonder if we can just adjust
\pgfkeysifdefined
https://github.com/pgf-tikz/pgf/blob/d43fb104dadc1db7e2bcae6f02e0607078a98be1/tex/generic/pgf/utilities/pgfkeys.code.tex#L213-L219 so that it is safer without breaking everything else:MWE