Skip to main content

DOT

Constants related to the dot format.

Attributes

AttributeTypeDescription
HEADstring = dedent("\n {IN}{type} {id} {{\n {INp}graph [{attrs}]\n")Template string for the opening header of a DOT file, including the graph type, identifier, and global graph attributes.
ATTRstring = {name}={value}Template string used to format an individual attribute key-value pair.
NODEstring = {INp}"{0}" [{attrs}]Template string for defining a node and its associated attributes within the graph.
EDGEstring = {INp}"{0}" {dir} "{1}" [{attrs}]Template string for defining a relationship between two nodes, incorporating the directional operator and edge attributes.
ATTRSEPstring = ,The character sequence used to separate multiple attributes within a bracketed attribute list.
DIRSdict = {"graph": "--", "digraph": "- >"}A mapping of graph types to their respective edge connection symbols, such as '--' for undirected and '- >' for directed graphs.
TAILstring = {IN}}Template string for the closing brace that terminates the DOT graph definition.