Uses of Class
com.jgalgo.gen.GnpGraphGenerator
Package
Description
Graph generators used to generate (possibly random) graphs with different distributions and structures.
-
Uses of GnpGraphGenerator in com.jgalgo.gen
Modifier and TypeMethodDescriptionGnpGraphGenerator.directed
(boolean directed) Determine if the generated graph(s) is directed or undirected.GnpGraphGenerator.edgeProbability
(double p) Set the probability each edge will exists in the generated graph(s).Set the edge builder that will be used to generate edges.GnpGraphGenerator.seed
(long seed) Set the seed of the random number generator used to generate the graph(s).GnpGraphGenerator.selfEdges
(boolean selfEdges) Determine if the generated graph(s) will contain self-edges.GnpGraphGenerator.vertices
(int verticesNum) Set the number of vertices that will be generated for each graph.Set the number of vertices that will be generated for each graph, and the vertex builder that will be used to generate them.GnpGraphGenerator.vertices
(Collection<? extends V> vertices) Set the vertices set of the generated graph(s).