ash_model.paths.walks.all_shortest_s_walks

ash_model.paths.walks.all_shortest_s_walks(h, s, hyperedge_a=None, start=None, end=None, weight=False, edge=True)[source]

Retrieve the shortest s-walk(s) in the hypergraph or its dual.

Delegates to shortest_s_walk.

Parameters:
  • h (ASH) – ASH instance.

  • s (int) – Minimum overlap size.

  • hyperedge_a (str | None) – Source hyperedge ID (optional).

  • start (int | None) – Start time bound.

  • end (int | None) – End time bound.

  • weight (bool) –

  • edge (bool) –

Returns:

Single path (list) if two endpoints specified, or dict of {target: path} if one endpoint, or nested dict if neither.

Return type:

List[str] | Dict[str, List[str]]