๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Core-Peripheryยถ

Submodulesยถ

hypergraphx.communities.core_periphery.model moduleยถ

hypergraphx.communities.core_periphery.model.aggregate_local_core_values(nodes, order, local_core_values)[source]ยถ
hypergraphx.communities.core_periphery.model.aggregation_function(values)[source]ยถ
hypergraphx.communities.core_periphery.model.core_periphery(hypergraph, greedy_start=False, N_ITER=1000, *, seed=None, rng=None)[source]ยถ

Implementation of the core-periphery model described in: https://arxiv.org/pdf/2202.12769.pdf

Parameters:
  • hypergraph (Hypergraph) โ€“ Hypergraph object

  • greedy_start (bool) โ€“ If True, use a greedy approach to find the initial permutation of nodes (default: False)

  • N_ITER (int) โ€“ Number of iterations (default: 1000)

Returns:

Dictionary with coreness scores for each node

Return type:

dict

hypergraphx.communities.core_periphery.model.get_adj(d)[source]ยถ
hypergraphx.communities.core_periphery.model.get_core_quality(edges, order, local_core_values)[source]ยถ
hypergraphx.communities.core_periphery.model.relabel_nodes(d, w)[source]ยถ
hypergraphx.communities.core_periphery.model.sample_params(*, rng=None)[source]ยถ
hypergraphx.communities.core_periphery.model.sort_by_degree(d)[source]ยถ
hypergraphx.communities.core_periphery.model.transition_function(i, N_nodes, a, b)[source]ยถ

Module contentsยถ