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>
36 #include <ogdf/basic/HashArray.h>
37 
38 #include <string>
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 }
HashArray.h
Declaration and implementation of HashArray class.
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
GraphAttributes.h
Declaration of class GraphAttributes which extends a Graph by additional attributes.
ogdf::dot::Attribute::DoubleWeight
@ DoubleWeight
Graph.h
Includes declaration of graph class.
ogdf::dot::Attribute::Stroke
@ Stroke
ogdf::Graph::EdgeType
EdgeType
The type of edges (only used in derived classes).
Definition: Graph_d.h:901
ogdf::dot::Attribute::Height
@ Height
ogdf::dot::Attribute::Weight
@ Weight
ogdf::dot::Attribute::Type
@ Type
ogdf::dot::Attribute
Attribute
Definition: DOT.h:44
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:141
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:116
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