The keywords node, edge, graph, digraph, subgraph, and strict are case-independent.
An ID is one of the following: - Any string of alphabetic characters, underscores ) or digits, not beginning with a digit; - a numeral; - any double-quoted string - an HTML string
An edgeop is -> in directed graphs and -- in undirected graphs.
The language supports C++-style comments: /* */ and //. In addition, a line beginning with a '#' character is considered a line output from a C preprocessor and discarded.
Semicolons and commas aid readability but are not required. Also, any amount of whitespace may be inserted between terminals.
As another aid for readability, dot allows double-quoted strings to span multiple physical lines using the standard C convention of a backslash immediately preceding a newline character.
In addition, double-quoted strings can be concatenated using a '+' operator. As HTML strings can contain newline characters, which are used solely for formatting, the language does not allow escaped newlines or concatenation operators to be used within them.
# DOT Subgraphs and Clusters
Subgraphs play three roles in Graphviz. First, a subgraph can be used to represent graph structure, indicating that certain nodes and edges should be grouped together.
This is the usual role for subgraphs and typically specifies semantic information about the graph components.
# Links
# See also
- Testing Graphviz Plugin - Graphviz - Dagre - Viz.js