HoloNet.tools.compute_ce_network_degree_centrality#
- HoloNet.tools.compute_ce_network_degree_centrality(ce_tensor, consider_cell_role='sender_receiver')#
Calculate the degree centrality of each cell in the CE network.
- Parameters
- ce_tensor
Tensor A CE tensor (LR_pair_num * cell_num * cell_num)
- consider_cell_role
str(default:'sender_receiver') One value selected in ‘receiver’, ‘sender’ and ‘sender_receiver’, determining the function calculating the in-degrees, out-degrees, or the sum of them,
- ce_tensor
- Return type
Tensor- Returns
: A tensor (LR_num * cell_num) for the degree centrality of each cell according to each LR pair.