ash_model.paths.walks.all_shortest_s_walk_lengths

ash_model.paths.walks.all_shortest_s_walk_lengths(h, s, hyperedge_a=None, start=None, end=None)[source]

Compute lengths of shortest s-walks between hyperedges.

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.

Returns:

Nested dict mapping hyperedge to target to length.

Return type:

Dict[str, Dict[str, int]]