Package org.graph4j.generators
Class VertexWeightsGenerator
java.lang.Object
org.graph4j.generators.VertexWeightsGenerator
Generates weights for the vertices of a graph.
- Author:
- Cristian Frăsinaru
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidrandomDoubles(Graph graph, double min, double max) static voidrandomIntegers(Graph graph, int min, int max)
-
Constructor Details
-
VertexWeightsGenerator
public VertexWeightsGenerator()
-
-
Method Details
-
randomIntegers
- Parameters:
graph- the input graph.min- minimum weight (inclusive).max- maximum weight (inclusive).
-
randomDoubles
- Parameters:
graph- the input graph.min- minimum weight (inclusive).max- maximum weight (inclusive).
-
fill
- Parameters:
graph- the input graph.value- the weight of all vertices.
-