ash_model.paths.randwalks.random_walk_probabilities

ash_model.paths.randwalks.random_walk_probabilities(h, s=1, start=None, end=None, edge=False)[source]

Compute CSR transition matrix and index mapping for nodes or hyperedges.

Parameters:
  • h (ASH) – ASH hypergraph object

  • s (int) – Minimum s-incidence threshold (for nodes: co-occurrence count; for edges: intersection size)

  • start (int | None) – Lower temporal bound

  • end (int | None) – Upper temporal bound

  • edge (bool) – If True, compute for hyperedge line graph

Return type:

Tuple[scipy.sparse.csr_matrix, Dict[Any, int]]