13 #include <graphviz/cgraph.h>
15 #include <dpsim-models/Definitions.h>
20 enum class Type { undirected, directed };
31 void set(
const String &key,
const String &value,
bool html =
false);
55 std::map<String, Node *> mNodes;
56 std::map<String, Edge *> mEdges;
61 Graph(
const String &name, Type type,
bool strict =
false);
64 void render(std::ostream &os,
const String &layout =
"dot",
65 const String &format =
"svg");
67 Node *addNode(
const String &name);
68 Edge *addEdge(
const String &name,
Node *head,
Node *tail);
70 Node *node(
const String &name);
71 Edge *edge(
const String &name);