Class RandomGeometry

Object
AbstractGeometry
RandomGeometry

public class RandomGeometry extends AbstractGeometry
Random (undirected) graph geometry that ensures the generated network is connected before sprinkling additional random edges.
  • Constructor Details

    • RandomGeometry

      public RandomGeometry(EvoLudo engine)
      Create an undirected random-graph geometry coordinated by the provided 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 graph. Ensures connectivity by first building a spanning tree and then sprinkling additional random edges.
      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