Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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} ]
share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

For HITSCentrality you could try

Pick[Transpose[HITSCentrality[graph1]], VertexList[graph1], 1]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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