Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
DOT.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/Graph.h>
35#include <ogdf/basic/graphics.h>
36
37#include <string>
38
39namespace ogdf {
40
41namespace dot {
42
43enum class Attribute {
44 Id = 0,
45 Label,
47 Stroke,
48 Fill,
50 Width,
51 Height,
52 Shape,
53 Weight,
57 Arrow,
61 Type,
62 Dir,
65};
66
67std::string toString(const Attribute& attr);
68std::string toString(const Shape& shape);
69std::string toString(const EdgeArrow& arrow);
70std::string toString(const Graph::EdgeType& type);
71
72Attribute toAttribute(const std::string& str);
73Shape toShape(const std::string& str);
74EdgeArrow toArrow(const std::string& str);
75Graph::EdgeType toEdgeType(const std::string& str);
76
77}
78}
Includes declaration of graph class.
EdgeType
The type of edges (only used in derived classes).
Definition Graph_d.h:906
Declaration of basic types for graphics.
Shape
Types for node shapes.
Definition graphics.h:120
EdgeArrow
Types for edge arrows.
Definition graphics.h:145
Graph::EdgeType toEdgeType(const std::string &str)
std::string toString(const Attribute &attr)
Shape toShape(const std::string &str)
Attribute
Definition DOT.h:43
EdgeArrow toArrow(const std::string &str)
Attribute toAttribute(const std::string &str)
The namespace for all OGDF objects.