ash_model.utils.projections.clique_projection_by_time

ash_model.utils.projections.clique_projection_by_time(h, keep_attrs=False)[source]

Returns a dictionary of NetworkX Graph objects that are the clique projections of the given ASH object for each time step.

Parameters:
  • h (ASH) – The ASH object to be projected.

  • keep_attrs (bool) – If True, the attributes of the nodes in the ASH will be preserved in the resulting NetworkX graphs.

Returns:

A dictionary where keys are time steps and values are NetworkX Graph objects representing the clique projection of the ASH at that time step.

Return type:

Dict[int, Graph]