필터 지우기
필터 지우기

get authority and hub scores from centrality function

조회 수: 13 (최근 30일)
Laszlo Bodnar
Laszlo Bodnar 2017년 1월 3일
답변: Christine Tobler 2017년 1월 3일
I calculated authority and hub scores of a network's nodes using the following function:
hub_ranks = centrality(G,'hubs');
auth_ranks = centrality(G,'authorities');
(Source: https://www.mathworks.com/help/matlab/ref/graph.centrality.html)
As the function's description says, "both scores are normalized such that the sum of all hubs scores is 1 and the sum of all authorities scores is 1".
Now I would like to extract the absolute scores themselves - not the normalized ones. Only problem is, I do not know how the normalization took place hence I cannot extract the original scores myself. Is there a workaround to this matter?

채택된 답변

Christine Tobler
Christine Tobler 2017년 1월 3일
The description is a bit misleading here: the 'hubs' and 'authorities' values for all nodes are both basically singular vectors of the adjacency matrix of the graph. So there are no absolute scores, every rescaling of the nodes is as good as any other.
This gets a bit more complicated when you have several disconnected components. In this case, MATLAB computes the 'hubs' / 'authorities' scores for each component separately, and rescales them so that the overall sum is still 1.
You can change that behavior yourself by taking a look at the MATLAB code for hubs and authorities:
edit digraph/centrality
Copy the parts needed for 'hubs' and 'authorities' into a new function, and you can implement exactly the behavior you want.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Networks에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by