Package org.graph4j.generators
Class CompleteTreeGenerator
java.lang.Object
org.graph4j.generators.AbstractGraphGenerator
org.graph4j.generators.CompleteTreeGenerator
Generates complete trees.
- Author:
- Cristian Frăsinaru
-
Field Summary
Fields inherited from class org.graph4j.generators.AbstractGraphGenerator
vertices -
Constructor Summary
ConstructorsConstructorDescriptionCompleteTreeGenerator(int numLevels, int degree) The root is the vertex with the number 0. -
Method Summary
Methods inherited from class org.graph4j.generators.AbstractGraphGenerator
addRandomEdges
-
Constructor Details
-
CompleteTreeGenerator
public CompleteTreeGenerator(int numLevels, int degree) The root is the vertex with the number 0.- Parameters:
numLevels- number of levels, each level will be complete.degree- the degree of the internal nodes.
-
-
Method Details
-
create
- Returns:
- a complete tree.
-