Defined in dot.hpp.
This nested struct represents an edge in the represented graph.
Public Member Functions | |
| Edge ()=default | |
| Default constructor. | |
| Edge (Edge &&)=default | |
| Default move constructor. | |
| Edge (Edge const &)=default | |
| Default copy constructor. | |
| template<typename Thing1, typename Thing2> | |
| Edge (Thing1 &&h, Thing2 &&t) | |
| Construct from head and tail. | |
| template<typename Thing1, typename Thing2> | |
| Edge & | add_attr (Thing1 &&key, Thing2 &&val) |
| Add an attribute to an edge. | |
| Edge & | operator= (Edge &&)=default |
| Default move assignment. | |
| Edge & | operator= (Edge const &)=default |
| Default copy assignment. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::string | to_human_readable_repr (Dot::Edge const &e) |
| Return a human readable representation of a Dot::Edge object. | |
|
inline |
This constructor creates a new Edge object with head h (converted to a std::string using std::to_string if thing is not already a std::string, std::string_view, or char const*) and tail t (similarly converted to a std::string).
The newly constructed Edge has no attributes set.
| Thing | the type of the argument. |
| h | the head of the edge. |
| t | the tail of the edge. |
|
inline |
This function adds a new attribute, or replaces the value of an existing attribute of an Edge. The arguments key and val are converted to std::string (unless they are std::string, std::string_view, or char const* already).
| Thing1 | the type of the first argument. |
| Thing2 | the type of the second argument. |
| key | the name of the attribute. |
| val | the value of the attribute. |
this.key or val are valid in DOT; see the Graphviz documentation for more details.
|
Return a human readable representation of a Dot::Edge object.
| e | the Dot::Edge object. |