RandomGraphFactoryExtension<V, E> extension

Creates random graphs using different models.

on

Methods

randomErdosRenyi({required int vertexCount, required double probability}) Graph<V, E>
Generates a graph using the Erdős–Rényi model with vertexCount vertices and a constant probability of creating an edge between any pair of vertices.