about the problem of disconnected networks:
The eigenvector corresponding to the largest eigenvalue of such an
adjacency matrix would usually have non-zero values only for one of the
components and thus be not very helpful as centrality measure.
This can be repaired by computing the eigenvectors of the individual
components, leaving the problem of recombination into a single vector.
The visone approach to this recombination problem is as follows:
let
* P be the number of weakly connected components in the graph
* p be the number of nodes within the component of the node we are
considering
* n be the total number of nodes in the graph and
* v be the value of the current node on the first eigenvector of its
component (the vector being normalized by euclidean norm)
then the value of our node in a first combination is:
v*(p-1)/(n-P)
the resulting vector is finally normalized to unit length.
But of course, as long as your graph is connected, the result is simply
the normalized first eigenvector.
So for comparison, you could simply create an individual graph for each
component or use the R-console: if you send your graph there with name
"g", then the command
eigen(get.adjacency(g))$vector[,1]
gives you the first eigenvector (replace 1 by 2 for second and so on).
hope this helps
Uwe