Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

UpwardPlanarSubgraphSimple.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 #include <ogdf/basic/tuples.h>
37 
38 
39 namespace ogdf {
40 
43 {
44 public:
45  // construction
47  // destruction
49 
50  // computes set of edges delEdges, which have to be deleted
51  // in order to get a planar subgraph; edges in preferedEdges
52  // should be contained in planar subgraph
53  virtual void call(const Graph &G, List<edge> &delEdges) override;
54 
55  void call(GraphCopy &GC, List<edge> &delEdges);
56 
57 
58 private:
59  bool checkAcyclic(
60  GraphCopySimple &graphAcyclicTest,
61  SList<Tuple2<node,node> > &tmpAugmented);
62 
63  void dfsBuildSpanningTree(
64  node v,
65  SListPure<edge> &treeEdges,
66  NodeArray<bool> &visited);
67 
68 };
69 
70 
71 } // end namespace ogdf
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
Singly linked lists.
Definition: SList.h:38
Singly linked lists (maintaining the length of the list).
Definition: SList.h:777
Tuples of two elements (2-tuples).
Definition: tuples.h:46
Copies of graphs supporting edge splitting.
Definition: GraphCopy.h:250
Copies of graphs with mapping between nodes and edges.
Definition: GraphCopy.h:60
Class for the representation of nodes.
Definition: Graph_d.h:167
Interface for algorithms for computing an upward planar subgraph.
Declaration and implementation of class Tuple2, Tuple3 and Tuple4.
A maximal planar subgraph algorithm using planarity testing.
The namespace for all OGDF objects.
Declaration of interface for upward planar subgraph algorithms.