RandomGraphFactoryExtension<V, E> extension
Creates random graphs using different models.
- on
-
- GraphFactory<
V, E>
- GraphFactory<
Methods
-
randomErdosRenyi(
{required int vertexCount, required double probability}) → Graph< V, E> -
Available on GraphFactory<
Generates a graph using the Erdős–Rényi model withV, E> , provided by the RandomGraphFactoryExtension extensionvertexCount
vertices and a constantprobability
of creating an edge between any pair of vertices.