Class RandomDirectedGeometry

Object
AbstractGeometry
RandomDirectedGeometry

public class RandomDirectedGeometry extends AbstractGeometry
Random directed graph geometry that wires a spanning tree first to ensure connectivity before adding remaining edges uniformly at random.
  • Constructor Details

    • RandomDirectedGeometry

      public RandomDirectedGeometry(EvoLudo engine)
      Create a directed random-graph geometry controlled 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 directed random graph by first creating a spanning tree and then adding remaining edges uniformly at random.
      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