Module rustworkx_core::generators
source · Expand description
This module contains generator functions for building graphs
Structs
- Error returned by generator functions when the input arguments are an invalid combination (such as missing required options).
Functions
- Generate a barbell graph where two identical complete graphs are connected by a path.
- Generate a binomial tree graph
- Generate a complete graph
- Generate a cycle graph
- Generate a full r-ary tree of
n
nodes. Sometimes called a k-ary, n-ary, or m-ary tree. - Generate a Gnm random graph, also known as an Erdős-Rényi graph.
- Generate a Gnp random graph, also known as an Erdős-Rényi graph or a binomial graph.
- Generate a grid graph
- Generate a heavy hex graph.
- Generate a heavy square graph.
- Generate a hexagonal lattice graph
- Generate a lollipop graph where a complete graph is connected to a path.
- Generate a path graph
- Generate a generalized Petersen graph
G(n, k)
with2n
nodes and3n
edges. - Generate a random geometric graph in the unit cube of dimensions
dim
. - Generate a star graph