Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

LayoutStatistics.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 
38 namespace ogdf {
39 
40 
42 
46 {
47 public:
49 
62  static double edgeLengths(
63  const GraphAttributes &ga,
64  double *pMinLength = nullptr,
65  double *pMaxLength = nullptr,
66  double *pAvgLength = nullptr,
67  double *pStdDeviation = nullptr,
68  bool considerSelfLoops = false);
69 
70 
72 
85  static int numberOfBends(
86  const GraphAttributes &ga,
87  int *pMinBendsPerEdge = nullptr,
88  int *pMaxBendsPerEdge = nullptr,
89  double *pAvgBendsPerEdge = nullptr,
90  double *pStdDeviation = nullptr,
91  bool considerSelfLoops = false);
92 
93 
95 
109  static double angularResolution(
110  const GraphAttributes &ga,
111  double *pMaxAngle = nullptr,
112  double *pAvgAngle = nullptr,
113  double *pStdDeviation = nullptr,
114  bool considerBends = true);
115 
116 
118 
126  static int numberOfCrossings(const GraphAttributes &ga);
127 
128 
130 
145  static void intersectionGraph(const GraphAttributes &ga, Graph &H, NodeArray<DPoint> &points, NodeArray<node> &origNode, EdgeArray<edge> &origEdge);
146 };
147 
148 
149 } // end namespace ogdf
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Utility class providing functions for computing statistical information about a layout.
Dynamic arrays indexed with edges.
Definition: EdgeArray.h:112
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:423
Stores additional attributes of a graph (like layout information).
The namespace for all OGDF objects.