Expand description
This module contains generator functions for building graphs
Structs§
- Invalid
Input Error - Error returned by generator functions when the input arguments are an invalid combination (such as missing required options).
Functions§
- barabasi_
albert_ graph - Generate a random Barabási–Albert preferential attachment algorithm
- barbell_
graph - Generate a barbell graph where two identical complete graphs are connected by a path.
- binomial_
tree_ graph - Generate a binomial tree graph
- complete_
graph - Generate a complete graph
- cycle_
graph - Generate a cycle graph
- dorogovtsev_
goltsev_ mendes_ graph - Generate a Dorogovtsev-Goltsev-Mendes graph
- full_
rary_ tree_ graph - Generate a full r-ary tree of
n
nodes. Sometimes called a k-ary, n-ary, or m-ary tree. - gnm_
random_ graph - Generate a Gnm random graph, also known as an Erdős-Rényi graph.
- gnp_
random_ graph - Generate a Gnp random graph, also known as an Erdős-Rényi graph or a binomial graph.
- grid_
graph - Generate a grid graph
- heavy_
hex_ graph - Generate a heavy hex graph.
- heavy_
square_ graph - Generate a heavy square graph.
- hexagonal_
lattice_ graph - Generate a hexagonal lattice graph
- hexagonal_
lattice_ graph_ weighted - Generate a hexagonal lattice graph where each node is assigned a weight depending on its position in the lattice.
- hyperbolic_
random_ graph - Generate a hyperbolic random undirected graph (also called hyperbolic geometric graph).
- karate_
club_ graph - Generates Zachary’s Karate Club graph.
- lollipop_
graph - Generate a lollipop graph where a complete graph is connected to a path.
- path_
graph - Generate a path graph
- petersen_
graph - Generate a generalized Petersen graph
G(n, k)
with2n
nodes and3n
edges. - random_
bipartite_ graph - Generate a random bipartite graph.
- random_
geometric_ graph - Generate a random geometric graph in the unit cube of dimensions
dim
. - sbm_
random_ graph - Generate a graph from the stochastic block model.
- star_
graph - Generate a star graph