48#ifndef GUM_DOT_ELEMENTS_H
49#define GUM_DOT_ELEMENTS_H
78 std::string_view defaultLabel =
"");
95 std::string_view defaultLabel =
"",
96 std::string_view defaultTooltip =
"");
108 GUM_SHARED_PUBLIC
void
The options given to a toDot(const DotOptions&).
Writes a graph in the dot language, statement after statement, in the order of the calls.
What the caller gives to a toDot() beyond the configuration: sizes, labels, colors of some nodes and ...
Look of the graphs drawn with graphviz, read from the configuration.
std::vector< DotAttribute > DotAttributes
a list of attributes
DotAttributes nodeAttributes(const DotStyle &style, const DotNodeOptions *options, std::string_view defaultLabel, std::string_view defaultTooltip)
The attributes of a node : its label and tooltip, and its colors if the options give some.
void writePreamble(DotWriter &writer, const DotStyle &style, const DotOptions &options, std::string_view defaultLabel)
Writes the beginning of a graph, as pyAgrum displays it.
void addDefaultAttribute(DotAttributes &attributes, std::string_view key, std::string_view value)
Adds an attribute at the beginning of the list, unless the list already gives a value for this key : ...
DotAttributes arcAttributes(const DotArcOptions *options)
The attributes of an arc or an edge given by the options : color, penwidth, label,...
the options of an arc or an edge : an empty text (no value for the width) means "not given"
the options of a node : an empty text means "not given", so that the value of the configuration is us...
The look shared by all the graphs: size, direction, layout, colors of the arcs and of the nodes.