void | planar_biconnected_graph(leda_graph& G, int n, int m, bool multiEdges = false, bool planarMap = false) | |
creates a planar, biconnected graph
G with n vertices and m edges. If multiEdges is set to
false, G will not contain multi-edges. If planarMap
is set to true, G will represent a planar map, that is,
all reversal edges will be present, otherwise not.
The generator creates always planar biconnected graphs with n' nodes
and m' edges, such that n' |
||
void | planar_triconnected_graph(leda_graph& G, int n, int m) | |
creates a planar, triconnected and simple graph G with n
nodes and m edges. The number of edges can differ slightly from m.
Note: For a triconnected planar graph with n nodes (n > = 4) and m edges
always holds ![]() |
||
void | random_tree(leda_graph& G, int n, int max_deg=0, int max_width=0) | |
creates a rooted tree G with n nodes, maximal node degree max_deg, and maximal level width max_width. If max_deg is 0, the is maximal degree is not restricted, if max_width is 0, the level width is not restricted. | ||
void | st_planar_graph(leda_graph& G, int n, int m, bool multi_edges, double st_prob) | |
creates an st-planar graph G with n vertices and m edges. If multi_edges is set to false, G will not contain multi-edges. The parameter st_prob determines the propability that the edge (s, t) is contained in G. | ||
void | random_hierarchy(LeveledGraph& LG, int n, int m, bool planar = false, bool singleSource = false, bool longEdges = true) | |
creates a random leveled graph LG with n nodes and m edges. The graph is leveled planar, if planar is set to true. It contains a single source, if singleSource is set to true. If longEdges is set to false, then adjacent nodes are on neighbored levels. |
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13