Graph generators¶
Atlas¶
|
Returns graph number i from the Graph Atlas. |
Returns the list of all graphs with up to seven nodes named in the Graph Atlas. |
Classic¶
|
Returns the perfectly balanced r-ary tree of height h. |
|
Returns the Barbell Graph: two complete graphs connected by a path. |
|
Returns the Binomial Tree of order n. |
|
Return the complete graph K_n with n nodes. |
|
Returns the complete multipartite graph with the specified subset sizes. |
|
Returns the circular ladder graph $CL_n$ of length n. |
|
Returns the circulant graph $Ci_n(x_1, x_2, ..., x_m)$ with $n$ nodes. |
|
Returns the cycle graph $C_n$ of cyclically connected nodes. |
|
Returns the hierarchically constructed Dorogovtsev-Goltsev-Mendes graph. |
|
Returns the empty graph with n nodes and zero edges. |
|
Returns the Path graph P_n of linearly connected nodes. |
|
Return the star graph |
|
Creates a full r-ary tree of n nodes. |
|
Returns the Ladder graph of length n. |
|
Returns the Lollipop Graph; K_m connected to P_n. |
|
Returns the Null graph with no nodes or edges. |
|
Return the Trivial graph with one node (with label 0) and no edges. |
|
Return the Turan Graph |
|
Return the wheel graph |
Expanders¶
|
Returns the Margulis-Gabber-Galil undirected MultiGraph on n^2 nodes. |
|
Returns the chordal cycle graph on p nodes. |
|
Returns the Paley (p-1)/2-regular graph on p nodes. |
Small¶
|
Return the small graph described by graph_description. |
|
Return the cubic graph specified in LCF notation. |
|
Returns the Bull Graph |
|
Returns the Chvátal Graph |
|
Returns the 3-regular Platonic Cubical Graph |
|
Returns the Desargues Graph |
|
Returns the Diamond graph |
|
Returns the Platonic Dodecahedral graph. |
|
Returns the Frucht Graph. |
|
Returns the Heawood Graph, a (3,6) cage. |
|
Returns the House graph (square with triangle on top) |
|
Returns the House graph with a cross inside the house square. |
|
Returns the Platonic Icosahedral graph. |
|
Returns the Krackhardt Kite Social Network. |
|
Returns the Moebius-Kantor graph. |
|
Returns the Platonic Octahedral graph. |
Returns the Pappus graph. |
|
|
Returns the Petersen graph. |
|
Return a small maze with a cycle. |
|
Returns the 3-regular Platonic Tetrahedral graph. |
|
Returns the skeleton of the truncated cube. |
|
Returns the skeleton of the truncated Platonic tetrahedron. |
|
Returns the Tutte graph. |
Duplication Divergence¶
|
Returns an undirected graph using the duplication-divergence model. |
|
Returns a random graph using the partial duplication model. |
Degree Sequence¶
|
Returns a random graph with the given degree sequence. |
|
Returns a directed_random graph with the given degree sequences. |
|
Returns a random graph with given expected degrees. |
|
Returns a simple graph with given degree sequence constructed using the Havel-Hakimi algorithm. |
|
Returns a directed graph with the given degree sequences. |
|
Make a tree for the given degree sequence. |
|
Returns a simple random graph with the given degree sequence. |
Directed¶
Generators for some directed graphs, including growing network (GN) graphs and scale-free graphs.
|
Returns the growing network (GN) digraph with n nodes. |
|
Returns the growing network with redirection (GNR) digraph with n nodes and redirection probability p. |
|
Returns the growing network with copying (GNC) digraph with n nodes. |
|
Returns a random k-out graph with preferential attachment. |
|
Returns a scale-free directed graph. |
Geometric¶
Generators for some directed graphs, including growing network (GN) graphs and scale-free graphs.
|
Returns a random geometric graph in the unit cube of dimensions dim. |
|
Returns a soft random geometric graph in the unit cube. |
|
Returns a geographical threshold graph. |
|
Returns a Waxman random graph. |
|
Returns a thresholded random geometric graph in the unit cube. |
Ego Graph¶
|
Returns induced subgraph of neighbors centered at node n within a given radius. |
Stochastic¶
Functions for generating stochastic graphs from a given weighted directed graph.
|
Returns a right-stochastic representation of directed graph G. |
AS graph¶
Generates graphs resembling the Internet Autonomous System network
|
Generates a random undirected graph resembling the Internet AS network |
Intersection¶
Generators for random intersection graphs.
|
Returns a uniform random intersection graph. |
|
Returns a intersection graph with randomly chosen attribute sets for each node that are of equal size (k). |
|
Returns a random intersection graph with independent probabilities for connections between node and attribute sets. |
Community¶
|
Returns a caveman graph of l cliques of size k. |
|
Returns a connected caveman graph of l cliques of size k. |
|
Generate a Gaussian random partition graph. |
|
Returns the LFR benchmark graph. |
|
Returns the planted l-partition graph. |
|
Returns the random partition graph with a partition of sizes. |
|
Returns a relaxed caveman graph. |
|
Defines a "ring of cliques" graph. |
|
Returns a stochastic block model graph. |
|
Generate a windmill graph. |
Spectral¶
|
Returns a random simple graph with spectrum resembling that of G |
Trees¶
|
Returns a uniformly random tree on n nodes. |
|
Creates a directed prefix tree from a list of paths. |
Non Isomorphic Trees¶
|
Returns a list of nonisomporphic trees |
Returns the number of nonisomorphic trees |
Triads¶
|
Returns the triad graph with the given name. |
Joint Degree Sequence¶
Generate graphs with a given joint degree and directed joint degree
|
Checks whether the given joint degree dictionary is realizable. |
|
Generates a random simple graph with the given joint degree dictionary. |
|
Checks whether the given directed joint degree input is realizable |
|
Generates a random simple directed graph with the joint degree. |
Mycielski¶
|
Returns the Mycielskian of a simple, undirected graph G |
Generator for the n_th Mycielski Graph. |
Harary Graph¶
Generators for Harary graphs
This module gives two generators for the Harary graph, which was introduced by the famous mathematician Frank Harary in his 1962 work [H]. The first generator gives the Harary graph that maximizes the node connectivity with given number of nodes and given number of edges. The second generator gives the Harary graph that minimizes the number of edges in the graph with given node connectivity and number of nodes.
References
Harary, F. “The Maximum Connectivity of a Graph.” Proc. Nat. Acad. Sci. USA 48, 1142-1146, 1962.
|
Returns the Harary graph with given numbers of nodes and edges. |
|
Returns the Harary graph with given node connectivity and node number. |
Sudoku¶
|
Returns the n-Sudoku graph. |