Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

LayoutStatistics.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/ArrayBuffer.h>
36 #include <ogdf/basic/Graph.h>
37 #include <ogdf/basic/basic.h>
38 #include <ogdf/basic/geometry.h>
39 
40 namespace ogdf {
41 class GraphAttributes;
42 
44 
48 public:
50 
55  static ArrayBuffer<double> edgeLengths(const GraphAttributes& ga, bool considerSelfLoops = false);
56 
57 
59 
64  static ArrayBuffer<int> numberOfBends(const GraphAttributes& ga, bool considerSelfLoops = false);
65 
66 
68 
75  static ArrayBuffer<double> angles(const GraphAttributes& ga, bool considerBends = true);
76 
77 
79 
93  static ArrayBuffer<int> numberOfCrossings(const GraphAttributes& ga);
94 
95 
98 
109  static ArrayBuffer<int> numberOfNodeCrossings(const GraphAttributes& ga);
110 
111 
113 
123  static ArrayBuffer<int> numberOfNodeOverlaps(const GraphAttributes& ga);
124 
125 
127 
146  static void intersectionGraph(const GraphAttributes& ga, Graph& H, NodeArray<DPoint>& points,
147  NodeArray<node>& origNode, EdgeArray<edge>& origEdge);
148 };
149 
150 }
ogdf::ArrayBuffer< double >
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphAttributes
Stores additional attributes of a graph (like layout information).
Definition: GraphAttributes.h:72
ArrayBuffer.h
Declaration and implementation of ArrayBuffer class.
Graph.h
Includes declaration of graph class.
geometry.h
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
ogdf::LayoutStatistics
Computes statistical information about a layout.
Definition: LayoutStatistics.h:47
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716