4
$\begingroup$

I want the centrality measure of a particular vertex in my graph, and for Closeness, Betweenness and Degree centralities I have been using :

Pick[bc, VertexList[graph1], 1 ]

However, for HITSCentrality, the result is in two lists, and I'm not sure how to pick out the two values for a single node.

Something like this isn't working...

Pick[bc, VertexList[graph1], {1,1} ]
$\endgroup$
5
$\begingroup$

For HITSCentrality you could try

Pick[Transpose[HITSCentrality[graph1]], VertexList[graph1], 1]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.