BLI: add dot::Edge.set_label method

This method sets the label of an edge in a dot graph.
This commit is contained in:
Jacques Lucke 2020-08-05 12:21:35 +02:00
parent fc9f7e3e51
commit e4a4dc5309
1 changed files with 5 additions and 0 deletions

View File

@ -237,6 +237,11 @@ class Edge : blender::NonCopyable, blender::NonMovable {
{
this->set_attribute("dir", dirType_to_string(type));
}
void set_label(StringRef label)
{
this->set_attribute("label", label);
}
};
class DirectedEdge : public Edge {