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

The statements common to the graphs drawn with graphviz : preamble, attributes of nodes and arcs. More...

#include <agrum/agrum.h>
#include <agrum/base/core/dot/dotOptions.h>
#include <agrum/base/core/dot/dotStyle.h>
#include <string_view>
Include dependency graph for dotElements.h:
This graph shows which files directly or indirectly include this file:

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

The statements common to the graphs drawn with graphviz : preamble, attributes of nodes and arcs.

Author
Pierre-Henri WUILLEMIN(_at_LIP6)

Definition in file dotElements.h.