Uses of Class
com.jgalgo.gen.GnmGraphGenerator
Package
Description
Graph generators used to generate (possibly random) graphs with different distributions and structures.
-
Uses of GnmGraphGenerator in com.jgalgo.gen
Modifier and TypeMethodDescriptionGnmGraphGenerator.directed
(boolean directed) Determine if the generated graph(s) is directed or undirected.GnmGraphGenerator.edges
(int edgesNum) Set the number of edges what will be generated for each graph.Set the number of edges what will be generated for each graph, and the edge builder that will be used to generate them.GnmGraphGenerator.parallelEdges
(boolean parallelEdges) Determine if the generated graph(s) will contain parallel-edges.GnmGraphGenerator.seed
(long seed) Set the seed of the random number generator used to generate the graph(s).GnmGraphGenerator.selfEdges
(boolean selfEdges) Determine if the generated graph(s) will contain self-edges.GnmGraphGenerator.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.GnmGraphGenerator.vertices
(Collection<? extends V> vertices) Set the vertices set of the generated graph(s).