Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

deterministic.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 
36 namespace ogdf {
37 
43 
50 OGDF_EXPORT void customGraph(Graph &G, int n, List<std::pair<int,int>> edges, Array<node> &nodes);
51 
53 
59 inline void customGraph(Graph &G, int n, List<std::pair<int,int>> edges) {
60  Array<node> nodes;
61  customGraph(G, n, edges, nodes);
62 }
63 
65 
80 OGDF_EXPORT void circulantGraph (Graph &G, int n, Array<int> jumps);
81 
83 
93 OGDF_EXPORT void regularLatticeGraph(Graph &G, int n, int k);
94 
96 
103 OGDF_EXPORT void regularTree(Graph& G, int n, int children);
104 
106 
112 OGDF_EXPORT void completeGraph(Graph &G, int n);
113 
115 
121 OGDF_EXPORT void completeKPartiteGraph(Graph &G, const Array<int> &signature);
122 
124 
131 OGDF_EXPORT void completeBipartiteGraph(Graph &G, int n, int m);
132 
134 
139 OGDF_EXPORT void wheelGraph(Graph &G, int n);
140 
142 
146 OGDF_EXPORT void cubeGraph(Graph &G, int n);
147 
149 
157 OGDF_EXPORT void suspension(Graph &G, int s);
158 
160 
167 OGDF_EXPORT void gridGraph(Graph &G, int n, int m, bool loopN, bool loopM);
168 
170 
183 OGDF_EXPORT void petersenGraph(Graph &G, int n = 5, int m = 2);
184 
186 
190 OGDF_EXPORT void emptyGraph(Graph &G, int nodes);
191 
193 
196 }
void regularTree(Graph &G, int n, int children)
Creates a regular tree.
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
void customGraph(Graph &G, int n, List< std::pair< int, int >> edges, Array< node > &nodes)
Creates a custom graph using a list of pairs to determine the graph&#39;s edges.
void circulantGraph(Graph &G, int n, Array< int > jumps)
Creates a circulant graph.
void emptyGraph(Graph &G, int nodes)
Creates a graph with nodes nodes and no edges.
void regularLatticeGraph(Graph &G, int n, int k)
Creates a regular lattice graph.
void completeBipartiteGraph(Graph &G, int n, int m)
Creates the complete bipartite graph K_{n,m}.
void cubeGraph(Graph &G, int n)
Creates the graph Q^n: A n-cube graph.
void completeGraph(Graph &G, int n)
Creates the complete graph K_n.
void completeKPartiteGraph(Graph &G, const Array< int > &signature)
Creates the complete k-partite graph K_{k1,k2,...,kn}.
Doubly linked lists (maintaining the length of the list).
Definition: List.h:40
void suspension(Graph &G, int s)
Modifies G by adding its s-th suspension.
Includes declaration of graph class.
void wheelGraph(Graph &G, int n)
Creates the graph W_n: A wheel graph.
The namespace for all OGDF objects.
void petersenGraph(Graph &G, int n=5, int m=2)
Creates a generalized Petersen graph.
void gridGraph(Graph &G, int n, int m, bool loopN, bool loopM)
Creates a (toroidal) grid graph on n x m nodes.