![]() Label ( Optional) – Caption to be displayed (defaults to the node name).Īttrs – Any additional node attributes (must be strings).Īttribute-value pairs applying to all nodes. Name ( str) – Unique identifier for the node inside the source. Str node ( name, label = None, _attributes = None, ** attrs ) ¶ ![]() TypeĭOT source identifier for the graph or digraph statement. Str property formatter : Optional ¶Īttribute-value pairs applying to the graph. The target path for saving the DOT source file. Target file name for saving the DOT source file. The tail_name and head_name strings are separatedīy (optional) colon(s) into node name, port name, Label ( Optional) – Caption to be displayed near the edge.Īttrs – Any additional edge attributes (must be strings). property directed : bool ¶īool edge ( tail_name, head_name, label = None, _attributes = None, ** attrs ) ¶Ĭreate an edge between two nodes. ReturnsĪn independent copy of the current object. Keep_attrs ( bool) – preserve graph/node/egde_attr mappings Return typeĭOT source comment for the first source line. Reset content to an empty body, clear graph/node/egde_attr mappings. Verbatim DOT source lines including final newline. See the usage examples in the User Guide. ParametersĪttrs – Attributes to be set (must be strings, may be empty). # noqa: E501 attr ( kw = None, _attributes = None, ** attrs ) ¶Īdd a general or graph/node/edge attribute statement. Strict ( bool) – Rendering should merge multi-edges. Node_attr – Mapping of (attribute, value) pairs set for all nodes.Įdge_attr – Mapping of (attribute, value) pairs set for all edges.īody – Iterable of verbatim lines (including their final newline) Graph_attr – Mapping of (attribute, value) pairs for the graph. Renderer ( Optional) – Output renderer used ( 'cairo', 'gd', …).įormatter ( Optional) – Output formatter used ( 'cairo', 'gd', …).Įncoding ( Optional) – Encoding for saving the source. Name ( Optional) – Graph name used in the source code.Ĭomment ( Optional) – Comment added to the first line of the source.įilename – Filename for saving the sourceĭirectory – (Sub)directory for source saving and rendering.įormat ( Optional) – Rendering output format ( 'pdf', 'png', …).Įngine ( Optional) – Layout command used ( 'dot', 'neato', …). Graph ( name = None, comment = None, filename = None, directory = None, format = None, engine = None, encoding = 'utf-8', graph_attr = None, node_attr = None, edge_attr = None, body = None, strict = False, *, renderer = None, formatter = None ) ¶ Their division reflects the fact that both graph syntaxes cannot be mixed. directed graphs) have exactly the same API. Return the upstream version number tuple from stderr of dot -V. Open filepath with its default viewing application (platform-specific). Return DOT source piped through unflatten preprocessor as string. Return input_string piped through engine into format as string. Return data ( bytes) piped through engine into format as bytes. Render file with engine into format and return result filename. TypeError raised if a required argument is missing. RuntimeError raised if the Graphviz executable is not found.ĬalledProcessError raised if a subprocess returncode is not 0. Return string not treating '' as DOT HTML string in quoting. Return string disabling special meaning of backslashes and ''. ![]() Verbatim DOT source code string to be rendered by Graphviz. Directed graph source code in the DOT language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |