Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
GDF.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/graphics.h>
35
36#include <string>
37
38namespace ogdf {
39
40namespace gdf {
41
42
43enum class NodeAttribute {
44 // GDF standard
45 Name = 0,
46 Label,
47 X,
48 Y,
49 Z,
55
56 Shape,
57 Width,
58 Height,
59 // OGDF specific
61 Weight,
64};
65
66
67enum class EdgeAttribute {
68 // GDF standard
69 Label = 0,
70 Source,
71 Target,
72 Weight,
74 Color,
75 // OGDF specific
76 Bends,
78};
79
80
81std::string toString(const NodeAttribute& attr);
82std::string toString(const EdgeAttribute& attr);
83std::string toString(const Shape& shape);
84
85NodeAttribute toNodeAttribute(const std::string& str);
86EdgeAttribute toEdgeAttribute(const std::string& str);
87Shape toShape(const std::string& str);
88
89}
90}
Declaration of basic types for graphics.
Shape
Types for node shapes.
Definition graphics.h:120
NodeAttribute toNodeAttribute(const std::string &str)
EdgeAttribute
Definition GDF.h:67
std::string toString(const NodeAttribute &attr)
EdgeAttribute toEdgeAttribute(const std::string &str)
NodeAttribute
Definition GDF.h:43
Shape toShape(const std::string &str)
The namespace for all OGDF objects.