Class RandomRegularGeometry

Object
AbstractGeometry
AbstractNetwork
RandomRegularGeometry

public class RandomRegularGeometry extends AbstractNetwork
Random regular graph geometry that repeatedly samples degree distributions until a connected realization is found.
  • Constructor Details

    • RandomRegularGeometry

      public RandomRegularGeometry(EvoLudo engine)
      Create a random regular geometry tied to the given engine.
      Parameters:
      engine - EvoLudo pacemaker
  • Method Details

    • parse

      public boolean parse(String arg)
      Description copied from class: AbstractGeometry
      Parse geometry-specific CLI options.
      Overrides:
      parse in class AbstractGeometry
      Parameters:
      arg - the argument string without the geometry key
      Returns:
      true if parsing succeeded, false if invalid
    • init

      public void init()
      Generates a connected undirected random regular graph with degree equal to the requested connectivity, retrying construction if necessary.
      Specified by:
      init in class AbstractGeometry
    • checkSettings

      protected boolean checkSettings()
      Description copied from class: AbstractGeometry
      Hook for subclasses to implement geometry specific checks.
      Overrides:
      checkSettings in class AbstractGeometry
      Returns:
      true if adjustments require a reset