get_gabriel#

eclypse.builders.infrastructure.references.topohub.gabriel.get_gabriel(size, sample=0, 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 Gabriel-graph infrastructure from TopoHub.

The size and sample values must correspond to a valid topology in TopoHub’s gabriel family catalogue.

Parameters:
  • size (int) – Number of nodes requested from the Gabriel family.

  • sample (int) – Reproducible sample index for the chosen size.

  • 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 Gabriel infrastructure.

Return type:

Infrastructure