Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
39 namespace ogdf {
40 
41 namespace dot {
42 
43 enum class Attribute {
44  Id = 0,
45  Label,
46  Template,
47  Stroke,
48  Fill,
49  StrokeType,
50  Width,
51  Height,
52  Shape,
53  Weight,
55  Position,
57  Arrow,
61  Type,
62  Dir,
63  SubGraphs,
64  Unknown
65 };
66 
67 std::string toString(const Attribute& attr);
68 std::string toString(const Shape& shape);
69 std::string toString(const EdgeArrow& arrow);
70 std::string toString(const Graph::EdgeType& type);
71 
72 Attribute toAttribute(const std::string& str);
73 Shape toShape(const std::string& str);
74 EdgeArrow toArrow(const std::string& str);
75 Graph::EdgeType toEdgeType(const std::string& str);
76 
77 }
78 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::dot::Attribute::DoubleWeight
@ DoubleWeight
Graph.h
Includes declaration of graph class.
graphics.h
Declaration of basic types for graphics.
ogdf::dot::Attribute::Stroke
@ Stroke
ogdf::Graph::EdgeType
EdgeType
The type of edges (only used in derived classes).
Definition: Graph_d.h:909
ogdf::dot::Attribute::Height
@ Height
ogdf::dot::Attribute::Weight
@ Weight
ogdf::dot::Attribute::Type
@ Type
ogdf::dot::Attribute
Attribute
Definition: DOT.h:43
ogdf::dot::Attribute::FillPattern
@ FillPattern
ogdf::dot::Attribute::Width
@ Width
ogdf::dot::Attribute::Unknown
@ Unknown
ogdf::dot::Attribute::FillBackground
@ FillBackground
ogdf::dot::toString
std::string toString(const Attribute &attr)
ogdf::dot::Attribute::StrokeWidth
@ StrokeWidth
backward::Color::type
type
Definition: backward.hpp:1716
ogdf::dot::toShape
Shape toShape(const std::string &str)
ogdf::dot::Attribute::StrokeType
@ StrokeType
ogdf::dot::Attribute::Position
@ Position
ogdf::dot::Attribute::Label
@ Label
ogdf::dot::Attribute::Dir
@ Dir
ogdf::EdgeArrow
EdgeArrow
Types for edge arrows.
Definition: graphics.h:145
ogdf::dot::toEdgeType
Graph::EdgeType toEdgeType(const std::string &str)
ogdf::dot::toArrow
EdgeArrow toArrow(const std::string &str)
ogdf::dot::Attribute::Template
@ Template
ogdf::dot::Attribute::Arrow
@ Arrow
ogdf::dot::Attribute::SubGraphs
@ SubGraphs
ogdf::Shape
Shape
Types for node shapes.
Definition: graphics.h:120
ogdf::dot::Attribute::Id
@ Id
ogdf::dot::Attribute::LabelPosition
@ LabelPosition
ogdf::dot::Attribute::Fill
@ Fill
ogdf::dot::toAttribute
Attribute toAttribute(const std::string &str)
ogdf::dot::Attribute::Shape
@ Shape