ash_model.paths.time_respecting_s_walks¶
- ash_model.paths.time_respecting_s_walks(h, s, start_from, stop_at=None, start=None, end=None, sample=1)[source]¶
Enumerate all time-respecting s-walks between a given source and optionally a target hyperedge.
- Parameters:
h (ASH) – The source hypergraph.
s (int) – Minimum number of shared nodes for s-incidence.
start_from (str | List[str]) – ID o lista di iperarchi da cui partire.
stop_at (str | None) – Se fornito, considera solo cammini che terminano a questo iperarco.
start (int | None) – First snapshot to include.
end (int | None) – Last snapshot to include.
sample (float) – Fraction of source-target pairs to sample (0 < sample <= 1).
- Returns:
Mapping (start_edge, end_edge) -> list of walks (TemporalEdge lists).
- Return type: