ash_model.measures.hyperedge_most_frequent_node_attribute_value

ash_model.measures.hyperedge_most_frequent_node_attribute_value(h, hyperedge_id, attr_name, tid=None)[source]

Returns the most frequent value of a node attribute in a hyperedge. If tid is specified, it returns the value at that time point. If tid is None, it returns the most frequent value across all time points.

Parameters:
  • h (ASH) – The ASH object

  • hyperedge_id (str) – The hyperedge id

  • attr_name (str) – The attribute name to consider

  • tid (int | None) – The temporal id. If None, considers all time points

Returns:

A dictionary with the most frequent value of the attribute in the hyperedge nodes

Return type:

dict