Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
GraphML.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 {
40namespace graphml {
41
42enum class Attribute {
43 NodeLabel = 0,
45
46 X,
47 Y,
48 Z,
49 Width,
50 Height,
51 Size, // Gephi compatibility (size = max(width, height)).
52 Shape,
53
57
67 R,
68 G,
69 B, // Gephi compatibility (fill compounds).
70
73
76
77 NodeId,
79
83
84 Unknown // Has to be the last one!
85};
86
87std::string toString(const Attribute& attr);
88std::string toString(const Shape& shape);
89std::string toString(const EdgeArrow& arrow);
90std::string toString(const Graph::NodeType& type);
91std::string toString(const Graph::EdgeType& type);
92
93Attribute toAttribute(const std::string& str);
94Shape toShape(const std::string& str);
95EdgeArrow toArrow(const std::string& str);
96Graph::NodeType toNodeType(const std::string& str);
97Graph::EdgeType toEdgeType(const std::string& str);
98
99}
100}
Includes declaration of graph class.
NodeType
The type of nodes.
Definition Graph_d.h:909
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::NodeType toNodeType(const std::string &str)
Shape toShape(const std::string &str)
Attribute toAttribute(const std::string &str)
EdgeArrow toArrow(const std::string &str)
Graph::EdgeType toEdgeType(const std::string &str)
std::string toString(const Attribute &attr)
The namespace for all OGDF objects.