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>
37
38#include <string>
39
40namespace ogdf {
41namespace graphml {
42
43enum class Attribute {
44 NodeLabel = 0,
46
47 X,
48 Y,
49 Z,
50 Width,
51 Height,
52 Size, // Gephi compatibility (size = max(width, height)).
53 Shape,
54
58
68 R,
69 G,
70 B, // Gephi compatibility (fill compounds).
71
74
77
78 NodeId,
80
84
85 Unknown // Has to be the last one!
86};
87
88std::string toString(const Attribute& attr);
89std::string toString(const Shape& shape);
90std::string toString(const EdgeArrow& arrow);
91std::string toString(const Graph::NodeType& type);
92std::string toString(const Graph::EdgeType& type);
93
94Attribute toAttribute(const std::string& str);
95Shape toShape(const std::string& str);
96EdgeArrow toArrow(const std::string& str);
97Graph::NodeType toNodeType(const std::string& str);
98Graph::EdgeType toEdgeType(const std::string& str);
99
100}
101}
Includes declaration of graph class.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration and implementation of HashArray class.
NodeType
The type of nodes.
Definition Graph_d.h:569
EdgeType
The type of edges (only used in derived classes).
Definition Graph_d.h:566
Shape
Types for node shapes.
Definition graphics.h:116
EdgeArrow
Types for edge arrows.
Definition graphics.h:141
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
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.