void randomTree(Graph &G, int n)
Creates a random tree (simpler version.
void petersenGraph(Graph &G, int n, int m)
Creates a generalized Petersen graph.
void randomSeriesParallelDAG(Graph &G, int edges, double p=0.5, double flt=0.0)
Creates a random (simple, biconnected) series parallel DAG.
void regularTree(Graph &G, int n, int children)
Creates a regular tree.
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
void randomClusterGraph(ClusterGraph &C, Graph &G, int cNum)
Assigns random clusters to a given graph G.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void planarConnectedGraph(Graph &G, int n, int m)
Creates a random connected (simple) planar (embedded) graph.
void randomDiGraph(Graph &G, int n, double p)
Creates a random (simple) directed graph.
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's edges.
void randomHierarchy(Graph &G, int n, int m, bool planar, bool singleSource, bool longEdges)
Creates a random hierarchical graph.
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 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).
void suspension(Graph &G, int s)
Modifies G by adding its n-th suspension.
void upwardPlanarBiconnectedDiGraph(Graph &G, int n, int m)
Creates a random upward planar biconnected (embedded) digraph.
void planarCNBGraph(Graph &G, int n, int m, int b)
Creates a random planar graph, that is connected, but not biconnected.
void randomRegularGraph(Graph &G, int n, int d)
Creates a random d-regular graph. This method is not guaranteed to terminate!
NodeElement * node
The type of nodes.
void planarBiconnectedDiGraph(Graph &G, int n, int m, double p=0, bool multiEdges=false)
Creates a random planar biconnected acyclic (embedded) digraph.
void planarBiconnectedGraph(Graph &G, int n, int m, bool multiEdges=false)
Creates a random planar biconnected (embedded) graph.
void randomGraph(Graph &G, int n, int m)
Creates a random graph.
Includes declaration of graph class.
void wheelGraph(Graph &G, int n)
Creates the graph W_n: A wheel graph.
void randomClusterPlanarGraph(ClusterGraph &C, Graph &G, int cNum)
Assigns random clusters to a given graph G.
void randomBiconnectedGraph(Graph &G, int n, int m)
Creates a random biconnected graph.
The namespace for all OGDF objects.
bool randomSimpleGraph(Graph &G, int n, int m)
Creates a random simple graph.
void randomTriconnectedGraph(Graph &G, int n, double p1, double p2)
Creates a random triconnected (and simple) graph.
void gridGraph(Graph &G, int n, int m, bool loopN, bool loopM)
Creates a (toroidal) grid graph on n x m nodes.
void randomGeometricCubeGraph(Graph &G, int nodes, double threshold, int dimension=2)
Creates a random geometric graph by laying out nodes in a unit n-cube. Nodes with a distance < thresh...
void planarTriconnectedGraph(Graph &G, int n, int m)
Creates a random planar triconnected (and simple) graph.