Class KingGraphGenerator

java.lang.Object
org.graph4j.generators.AbstractGraphGenerator
org.graph4j.generators.KingGraphGenerator

public class KingGraphGenerator extends AbstractGraphGenerator
Author:
Cristian Frăsinaru
  • Constructor Details

    • KingGraphGenerator

      public KingGraphGenerator(int rows, int cols)
      Parameters:
      rows - the number of rows.
      cols - the number of columns.
  • Method Details

    • create

      public Graph create()
      Vertices are numbered from left to right and from top to bottom.
      Returns:
      a King's graph.