aGrUM 3.3.2
a C++ library for (probabilistic) graphical models
dotElements.cpp File Reference

Implementation of the statements common to the graphs drawn with graphviz. More...

Include dependency graph for dotElements.cpp:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities
namespace  gum::dot

Functions

void gum::dot::writePreamble (DotWriter &writer, const DotStyle &style, const DotOptions &options, std::string_view defaultLabel="")
 Writes the beginning of a graph, as pyAgrum displays it.
DotAttributes gum::dot::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.
DotAttributes gum::dot::arcAttributes (const DotArcOptions *options)
 The attributes of an arc or an edge given by the options : color, penwidth, label, tooltip and the ones given with setArcAttribute.
void gum::dot::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 : the value given by the caller of the toDot() wins over the one of the class.

Detailed Description

Implementation of the statements common to the graphs drawn with graphviz.

Author
Pierre-Henri WUILLEMIN(_at_LIP6)

Definition in file dotElements.cpp.