get_sndlib#

eclypse.builders.infrastructure.references.topohub.sndlib.get_sndlib(topology, infrastructure_id=None, update_policies=None, node_assets=None, link_assets=None, include_default_assets=False, resource_init='max', path_algorithm=None, seed=None)[source]#

Create a SNDlib-backed infrastructure from TopoHub.

The topology value must be a valid topology name from TopoHub’s sndlib family catalogue.

Parameters:
  • topology (str) – SNDlib topology identifier, such as "polska" or "geant".

  • infrastructure_id (str | None) – Identifier assigned to the infrastructure. If omitted, a dataset-based identifier is used.

  • update_policies (UpdatePolicies) – Graph update policies executed during evolve().

  • node_assets (dict[str, Asset] | None) – Node asset definitions available to the infrastructure.

  • link_assets (dict[str, Asset] | None) – Edge asset definitions available to the infrastructure.

  • include_default_assets (bool) – Whether to include default ECLYPSE assets.

  • resource_init (InitPolicy) – Initialisation policy used for graph assets.

  • path_algorithm (Callable[[nx.Graph, str, str], list[str]] | None) – Path computation function for infrastructure routing.

  • seed (int | None) – Seed forwarded to the infrastructure random generator.

Returns:

The converted SNDlib infrastructure.

Return type:

Infrastructure