Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
39 namespace ogdf {
40 namespace graphml {
41 
42 enum class Attribute {
43  NodeLabel = 0,
44  EdgeLabel,
45 
46  X,
47  Y,
48  Z,
49  Width,
50  Height,
51  Size, // Gephi compatibility (size = max(width, height)).
52  Shape,
53 
54  NodeLabelX,
55  NodeLabelY,
56  NodeLabelZ,
57 
67  R,
68  G,
69  B, // Gephi compatibility (fill compounds).
70 
71  NodeWeight,
72  EdgeWeight,
73 
74  NodeType,
75  EdgeType,
76 
77  NodeId,
78  Template,
79 
80  EdgeArrow,
82  EdgeBends,
83 
84  Unknown // Has to be the last one!
85 };
86 
87 std::string toString(const Attribute& attr);
88 std::string toString(const Shape& shape);
89 std::string toString(const EdgeArrow& arrow);
90 std::string toString(const Graph::NodeType& type);
91 std::string toString(const Graph::EdgeType& type);
92 
93 Attribute toAttribute(const std::string& str);
94 Shape toShape(const std::string& str);
95 EdgeArrow toArrow(const std::string& str);
96 Graph::NodeType toNodeType(const std::string& str);
97 Graph::EdgeType toEdgeType(const std::string& str);
98 
99 }
100 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::graphml::Attribute::NodeType
@ NodeType
Graph.h
Includes declaration of graph class.
graphics.h
Declaration of basic types for graphics.
ogdf::graphml::Attribute::EdgeLabel
@ EdgeLabel
ogdf::Graph::EdgeType
EdgeType
The type of edges (only used in derived classes).
Definition: Graph_d.h:909
ogdf::graphml::Attribute::B
@ B
ogdf::graphml::toArrow
EdgeArrow toArrow(const std::string &str)
ogdf::graphml::Attribute::Z
@ Z
ogdf::graphml::Attribute
Attribute
Definition: GraphML.h:42
ogdf::graphml::Attribute::EdgeArrow
@ EdgeArrow
ogdf::graphml::Attribute::EdgeBends
@ EdgeBends
ogdf::graphml::Attribute::NodeLabelZ
@ NodeLabelZ
ogdf::graphml::Attribute::NodeLabel
@ NodeLabel
ogdf::graphml::Attribute::NodeStrokeType
@ NodeStrokeType
ogdf::graphml::Attribute::Size
@ Size
ogdf::graphml::Attribute::NodeWeight
@ NodeWeight
ogdf::graphml::Attribute::EdgeStrokeColor
@ EdgeStrokeColor
backward::Color::type
type
Definition: backward.hpp:1716
ogdf::graphml::Attribute::Shape
@ Shape
ogdf::graphml::toString
std::string toString(const Attribute &attr)
ogdf::graphml::Attribute::NodeLabelX
@ NodeLabelX
ogdf::Graph::NodeType
NodeType
The type of nodes.
Definition: Graph_d.h:912
ogdf::EdgeArrow
EdgeArrow
Types for edge arrows.
Definition: graphics.h:145
ogdf::graphml::Attribute::EdgeStrokeWidth
@ EdgeStrokeWidth
ogdf::graphml::Attribute::Y
@ Y
ogdf::graphml::Attribute::NodeId
@ NodeId
ogdf::graphml::Attribute::X
@ X
ogdf::graphml::Attribute::ClusterStroke
@ ClusterStroke
ogdf::graphml::Attribute::NodeFillPattern
@ NodeFillPattern
ogdf::graphml::Attribute::Template
@ Template
ogdf::graphml::Attribute::Width
@ Width
ogdf::graphml::Attribute::EdgeStrokeType
@ EdgeStrokeType
ogdf::graphml::toNodeType
Graph::NodeType toNodeType(const std::string &str)
ogdf::graphml::Attribute::G
@ G
ogdf::graphml::Attribute::EdgeSubGraph
@ EdgeSubGraph
ogdf::graphml::Attribute::NodeFillBackground
@ NodeFillBackground
ogdf::graphml::Attribute::EdgeWeight
@ EdgeWeight
ogdf::Shape
Shape
Types for node shapes.
Definition: graphics.h:120
ogdf::graphml::Attribute::R
@ R
ogdf::graphml::toAttribute
Attribute toAttribute(const std::string &str)
ogdf::graphml::Attribute::NodeLabelY
@ NodeLabelY
ogdf::graphml::Attribute::NodeStrokeWidth
@ NodeStrokeWidth
ogdf::graphml::toEdgeType
Graph::EdgeType toEdgeType(const std::string &str)
ogdf::graphml::toShape
Shape toShape(const std::string &str)
ogdf::graphml::Attribute::Height
@ Height
ogdf::graphml::Attribute::NodeStrokeColor
@ NodeStrokeColor
ogdf::graphml::Attribute::EdgeType
@ EdgeType
ogdf::graphml::Attribute::Unknown
@ Unknown