Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 5 down vote accepted

For HITSCentrality you could try

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

Your Answer


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.