Random Graph Generator Functions#

rustworkx.directed_gnp_random_graph(...[, seed])

Return a \(G_{np}\) directed random graph, also known as an Erdős-Rényi graph or a binomial graph.

rustworkx.undirected_gnp_random_graph(...[, ...])

Return a \(G_{np}\) random undirected graph, also known as an Erdős-Rényi graph or a binomial graph.

rustworkx.directed_gnm_random_graph(...[, seed])

Return a \(G_{nm}\) directed graph, also known as an Erdős-Rényi graph.

rustworkx.undirected_gnm_random_graph(...[, ...])

Return a \(G_{nm}\) undirected graph, also known as an Erdős-Rényi graph.

rustworkx.random_geometric_graph(num_nodes, ...)

Returns a random geometric graph in the unit cube of dimensions dim.