Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

DOT.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
36 #include <ogdf/basic/HashArray.h>
37 #include <string>
38 
39 
40 namespace ogdf {
41 
42 namespace dot {
43 
44 enum class Attribute {
45  Id = 0,
46  Label,
47  Template,
48  Stroke,
49  Fill,
50  StrokeType,
51  Width,
52  Height,
53  Shape,
54  Weight,
56  Position,
58  Arrow,
62  Type,
63  Dir,
64  SubGraphs,
65  Unknown
66 };
67 
68 std::string toString(const Attribute &attr);
69 std::string toString(const Shape &shape);
70 std::string toString(const EdgeArrow &arrow);
71 std::string toString(const Graph::EdgeType &type);
72 
73 Attribute toAttribute(const std::string &str);
74 Shape toShape(const std::string &str);
75 EdgeArrow toArrow(const std::string &str);
76 Graph::EdgeType toEdgeType(const std::string &str);
77 
78 }
79 }
Graph::EdgeType toEdgeType(const std::string &str)
Declaration and implementation of HashArray class.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Shape toShape(const std::string &str)
Attribute toAttribute(const std::string &str)
EdgeArrow
Types for edge arrows.
Definition: graphics.h:186
Shape
Types for node shapes.
Definition: graphics.h:149
std::string toString(const Attribute &attr)
EdgeType
The type of edges (only used in derived classes).
Definition: Graph_d.h:538
Includes declaration of graph class.
EdgeArrow toArrow(const std::string &str)
The namespace for all OGDF objects.
Attribute
Definition: DOT.h:44