Class KlemmEguiluzGeometry


public class KlemmEguiluzGeometry extends AbstractNetwork
Scale-free/small-world network following the Klemm & Eguíluz growth process.
See Also:
  • Field Details

    • pSmallWorld

      private double pSmallWorld
      Probability to rewire links to create small-world shortcuts.
  • Constructor Details

    • KlemmEguiluzGeometry

      public KlemmEguiluzGeometry(EvoLudo engine)
      Create a Klemm-Eguíluz small-world geometry managed by the supplied 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
    • clampProbability

      private double clampProbability(double value)
      Clamp the probability parameter into the range [0,1].
      Parameters:
      value - raw probability value
      Returns:
      clamped probability
    • init

      public void init()
      Generates a connected undirected scale-free/small-world network following the Klemm & Eguíluz growth process. Effective connectivity approaches \(k(N-1)/N\) and the final structure can be rewired (with probability klemmProbability) to add small-world shortcuts.
      Specified by:
      init in class AbstractGeometry
      See Also:
    • clone

      public KlemmEguiluzGeometry clone()
      Description copied from class: AbstractGeometry
      Clone geometry.

      Requirements/notes:

      1. Overrides clone() in Object but conflicts with GWT's aversion to clone()ing...
      2. Remove @SuppressWarnings("all") to ensure that no other issues crept in when modifying method.
      Overrides:
      clone in class AbstractGeometry
      Returns:
      clone of geometry
    • equalParameters

      protected boolean equalParameters(AbstractGeometry other)
      Description copied from class: AbstractGeometry
      Compare subclass-specific geometry parameters for semantic equivalence.
      Overrides:
      equalParameters in class AbstractGeometry
      Parameters:
      other - the geometry to compare against
      Returns:
      true if subclass-specific settings are equivalent
    • hashParameters

      protected int hashParameters()
      Description copied from class: AbstractGeometry
      Hash subclass-specific geometry parameters used by AbstractGeometry.similar(AbstractGeometry).
      Overrides:
      hashParameters in class AbstractGeometry
      Returns:
      the hash contribution of subclass-specific settings