The keywords node, edge, graph, digraph, subgraph, and strict are case-independent. Note also that the allowed compass point values are not keywords
...
An ID is just a string; the lack of quote characters in the first two forms is just for simplicity. There is no semantic difference between abc_2 and "abc_2", or between 2.34 and "2.34". Obviously, to use a keyword as an ID, it must be quoted.
Currently dot fails with a syntax error when using reserved keywords as node IDs
From the DOT specification: http://www.graphviz.org/doc/info/lang.html
Currently dot fails with a syntax error when using reserved keywords as node IDs