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>
36 #include <ogdf/basic/HashArray.h>
37 
38 #include <string>
39 
40 namespace ogdf {
41 namespace graphml {
42 
43 enum class Attribute {
44  NodeLabel = 0,
45  EdgeLabel,
46 
47  X,
48  Y,
49  Z,
50  Width,
51  Height,
52  Size, // Gephi compatibility (size = max(width, height)).
53  Shape,
54 
55  NodeLabelX,
56  NodeLabelY,
57  NodeLabelZ,
58 
68  R,
69  G,
70  B, // Gephi compatibility (fill compounds).
71 
72  NodeWeight,
73  EdgeWeight,
74 
75  NodeType,
76  EdgeType,
77 
78  NodeId,
79  Template,
80 
81  EdgeArrow,
83  EdgeBends,
84 
85  Unknown // Has to be the last one!
86 };
87 
88 std::string toString(const Attribute& attr);
89 std::string toString(const Shape& shape);
90 std::string toString(const EdgeArrow& arrow);
91 std::string toString(const Graph::NodeType& type);
92 std::string toString(const Graph::EdgeType& type);
93 
94 Attribute toAttribute(const std::string& str);
95 Shape toShape(const std::string& str);
96 EdgeArrow toArrow(const std::string& str);
97 Graph::NodeType toNodeType(const std::string& str);
98 Graph::EdgeType toEdgeType(const std::string& str);
99 
100 }
101 }
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::graphml::Attribute::NodeType
@ NodeType
Graph.h
Includes declaration of graph class.
ogdf::graphml::Attribute::EdgeLabel
@ EdgeLabel
ogdf::Graph::EdgeType
EdgeType
The type of edges (only used in derived classes).
Definition: Graph_d.h:901
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:43
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:904
ogdf::EdgeArrow
EdgeArrow
Types for edge arrows.
Definition: graphics.h:141
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:116
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