ash_model.paths.has_s_walk

ash_model.paths.has_s_walk(h, s, fr=None, to=None, start=None, end=None, edge=True)[source]

Determine if an s-overlap walk exists between two hyperedges.

Parameters:
  • h (ASH) – ASH instance.

  • s (int) – Minimum overlap size.

  • fr (str | None) – Source hyperedge ID.

  • to (str | None) – Target hyperedge ID.

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

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

  • edge (bool) – If False, evaluate on dual hypergraph.

Returns:

True if a path exists, False otherwise.

Return type:

bool