On graph combinatorics to improve eigenvector-based measures of centrality in directed networks
Abstract
Producción Científica
Full text
On graph combinatorics to improve eigenvector-based measures of centrality in directed networks Argimiro Arratiaa,2, Carlos Mariju´anb,3 aDepartment of Computer Science/BGSMath, Universitat Polit`ecnica de Catalunya, Barcelona, Spain bDepartament of Applied Mathematics/IMUVA Universidad de Valladolid, Valladolid, Spain Abstract We present a combinatorial study on the rearrangement of links in the structure of directed networks for the purpose of improving the valuation of a vertex or group of vertices as established by an eigenvector-based centrality measure. We build our topological classification starting from unidirectional rooted trees and up to more complex hierarchical structures such as acyclic digraphs, bidirectional and cyclical rooted trees (obtained by closing cycles on unidirectional trees). We analyze different modifications on the structure of these networks and study their effect on the valuation given by the eigenvector-based scoring functions, with particular focus on α-centrality and PageRank. Key words: Centrality, Eigenvector, PageRank, Topology, Network 2010 MSC: 15B51, 68R10, 05C99, 05C40, 05C05 1. Introduction In the analysis of propagation of ideas and influence through social networks, a much studied optimization problem is the selection of the most authoritative nodes. This is the so-called influence maximization problem, Email addresses: [email protected] (Argimiro Arratia), [email protected] (Carlos Mariju´an) 1Published in: Linear Algebra and Applications, Vol. 504, 2016, pp. 325–353 2Supported by MINECO project APCOM (TIN2014-57226-P), Gen. Cat. SGR2014- 890 (MACDA) 3Supported by MICINN project SINGACOM (MTM2012-36917-C03-01) Preprint submitted to Linear Algebra and Applications April 28, 2016
which was first studied in [12], where it is shown NP-hard for several models of social networks and approximation guarantees for efficient solutions are given. A related problem is to model the dynamics of social networks that change in time by modifications on the topology of the network. These topological modifications can significantly alter the hierarchy of influence previously existing in a social network. For example, the situation arises in academic networks, such as Academia or Research Gate, where participants are often enticed by the administrator of the network to link (or follow) others, in order to raise their social presence and consequently their network score, which is computed by a form of centrality measure. Also, in the World Wide Web, the role played by the topology of the internet has been widely recognized as a key factor in the computation and improvement of the scores given by the most used ranking measure, namely PageRank (see [3], [10]). In this paper we address the problem of how the modifications in the link structure of a directed network, whose nodes are ranked by a measure of centrality based on eigenvectors, affects the distribution of values given by this type of scoring function. We propose to do this analysis progressively with respect to the topological complexity of the network. Hence, we present here the case of unidirectional rooted trees, acyclic digraphs through their rooted subtrees, trees with bidirectional arcs and trees extended with cycles, and for all these trees we set as our objective to improve the eigenvectorbased centrality score of the root. We focus our analysis on α-centrality and PageRank scoring functions. PageRank is arguably the most general form of eigenvector-based centrality measure, producing more meaningful scores in directed networks than other centrality measures in its class. As a matter of fact, measures of centrality based on the eigenvectors of the adjacency matrix of directed networks are basically three: eigenvector centrality [8], Katz or alpha-centrality [9] and PageRank [4, 5]. Eigenvector centrality is useless in acyclic digraphs because it assigns a null score to all vertices. In general, a vertex having arcs coming from source nodes (vertices with in-degree zero) obtains a score of zero. More precisely, only vertices in, or connected from, a strongly connected component have positive score. Katz and α-centrality fix the eigenvector scoring limitations by aggregating a term to the scoring function independent of the link structure. This additional term accounts for exogenous sources of information and in this way every vertex gets some non-zero score that can transmit to its neighbors. However, the Katz (and α) centrality score is transmitted uniformly, so that any number of vertices receiving a link from one vertex with high centrality score becomes equally 2
highly central too. This poses an unfair gain of relevance by many individuals in social networks, or pages in the World Wide Web, since it is enough for them to have a highly reputed “sponsor”, regardless of their level of popularity quantified by the number of links received. This anomaly is corrected by the PageRank centrality measure by dividing the centrality scores inherited from neighbor vertices by their out-degree. We will provide mathematical formulations of all these eigenvector-based centrality measures so that the reader can see how each generalizes the other in a formal way. For a more in-depth exposition of these and other centrality measures see [16]. The paper is organized as follows: In Section 2 we fix the notation to be used for digraphs, present the linear algebraic formulation of each of the eigenvector based directed network centrality measures, and discuss these measures from a perspective of power series. In Section 3 we specify the PageRank formula for directed networks organized as rooted trees. This formula depends solely on the number of vertices at each level of the tree structure, and provides us with a full mathematical justification of the fact that erasing the vertices farthest away from the root improves the PageR- ank. We then give some rules to optimize the link structure of a web site that stem from our results. Over rooted trees α–centrality coincides with PageRank so all results in this section apply to α–centrality as well. Section 4 presents a through analysis of how the basic combinatorial results of previous section adapt to the α-centrality, as well as PageRank measure, in the more general context of acyclic digraphs. In Section 5, we extend the PageRank and the α–centrality formula obtained in Section 3 to vertices of trees with bidirectional arcs, and cyclical trees (obtained by closing cycles on unidirectional rooted trees), modeling these more complex hierarchical structures by means of infinite unidirectional rooted trees. We also give a vectorial version of these formulas for bidirectional trees. In Section 6, we analyze the behavior of PageRank and α–centrality on bidirectional and cyclical trees when their topology is modified. We give qualitative and quantitative justifications on the consequences of these actions. We close with Section 7 looking at the directed network through its condensation digraph as the acyclic digraph of its strongly connected components, where PageRank can be calculated independently, thus justifying its computation in parallel as suggested by some authors. 2. Preliminaries on eigenvector based centrality measures By a digraph Dwe mean a pair D= (V, A) where Vis a finite nonempty set and A⊂V×V\{(v, v) : v∈V}. Elements in Vand Aare called vertices 3
and arcs respectively. For an arc (u, v) we will say that uis adjacent to v, and we also use uv to denote an arc (u, v). The in-degree id(v) (outdegree od(v)) of a vertex vis the number of arcs uv (vu) in A. A sequence of vertices v1v2. . . vq, q ≥2,such that vivi+1 is an arc for i= 1,2, . . . , q −1 is a walk of length q−1joining v1with vqor more simply a v1–vqwalk. If the vertices of v1v2. . . vqare distinct the walk is called a path. A cycle of length qor a q-cycle is a path v1v2. . . vqclosed by the arc vqv1. A digraph is acyclic if it has no cycle. By a subdigraph of the digraph (V, A) we mean a digraph (W, B) such that W⊂Vand B⊂A. The subdigraph is called a partial digraph when W=V. The induced subdigraph by the digraph (V, A) on W⊂Vis the digraph (W, A/W) where A/W =A∩(W×W). Let M= (mij) be the N×Nadjacency matrix of the digraph D= (V, A). If Drepresents a network (social or informational as WWW) mij >0 stands for the contribution of vertex vito vj’s status (and vivj∈A), and so we let x= (x1, . . . , xN)tbe a vector of centrality scores for the elements in V. The eigenvector centrality measure assigns to each vertex via proportion of the weighted sum of the centrality of the vertices connected to it: λxi=m1ix1+m2ix2+. . . +mNixN,for i= 1, . . . , N, (1) or in matrix form Mtx=λx(2) Then, the eigenvector centrality of the network Dis given by the unique nonnegative eigenvector xassociated to the spectral radius ρ(Mt) of the nonnegative matrix Mt(by Perron–Frobenius theory). Furthermore, such eigenvector is non null if the corresponding spectral radius ρ(Mt) is non null, which is equivalent to the existence of a cyclic structure in the digraph D. Consequently, eigenvector centrality is useless in acyclic digraphs. A more appropriate measure of centrality was introduced by Katz [11] in 1953. Katz considers for each vertex vithe influence of all the vertices connected by a walk to vi. Arc connections are penalized by an attenuation factor α, and the contribution of each vj–viwalk of length kto the score of vertex viis αk. Taking into account that each element (Mk)ji of the matrix Mkgives the number of vj–viwalks of length k, Katz centrality assigns to each vertex vithe score xi=∞ X k=1 N X j=1 αk(Mt)ji,for i= 1, . . . , N (3) 4
Then the Katz centrality vector is given by the column sums of the matrix ∞ X k=1 αk(Mt)k. If we set e= (1,...,1)tto be the N-vector of ones, we have the following matrix form for Katz centrality, x= ∞ X k=1 αk(Mt)k!e= −I+∞ X k=0 αk(Mt)k!e(4) where Iis the N×Nidentity matrix. If αis smaller than the inverse of the spectral radius of Mt, then the series P∞ k=0 αk(Mt)kconverges to (I−αMt)−1. In this case Eq. (4) can be expressed as x= (−I+ (I−αMt)−1)e(5) Another similar measure of centrality that also resolves the problems encountered by the eigenvector centrality is α–centrality (see [9]). This measure consists in adding to the Katz score of each vertex a constant term independent of the connective structure of the network, so that every vertex has a non zero centrality value. In this way, xi=α N X j=1 mjixj+βi(6) with α,βi>0 for each i= 1, . . . , N, where αis a parameter reflecting the relative importance of endogenous versus exogenous factors in the determination of centrality [9]. In matrix form x=αMtx+βe and rearranging for x, we have x=βI−αMt−1e(7) Since we are interested in the relative values of the scores xi, the factor βis irrelevant, and for convenience we set β= 1. So we have the α–centrality measure given by x= (I−αMt)−1e(8) Thus, α-centrality is a simple translation of Katz centrality. In the remainder of this paper we will refer to both measures as α-centrality. The next step to extend Eq. (8) to a more fair centrality measure that distributes the centrality of a node among its neighbors in proportion to 5
their number, is to consider the contribution of centrality from each node divided by its out-degree. In mathematical terms, the centrality xiof vertex viis formalized as xi=β+α N X j=1 mji xj od(vj)(9) where β > 0 is some constant. This is the general form of the PageRank scoring function which originally sets β= (1 −α)/N and αis a constant in the real interval (0,1) which is usually set to 0.85 [4, 5]. Additionally it is assumed that all nodes have at least out-degree 1 in order to avoid indeterminate terms in the sum. We use P(vi) to denote the original PageRank centrality measure for a vertex vi. Thus, Eq. (9) becomes P(vi) = 1−α N+α N X j=1 mji P(vj) od(vj)(10) where mji = 1 iff vivj∈Aor 0 otherwise. In matrix form p=(1 −α) N(I−αMtD−1)−1e(11) where Dis the diagonal matrix with Dii = max[od(vi),1], and p= (P(v1), . . . , P(vN))tis the PageRank vector of D. This pis a probability vector (the sum over jon the right side of Eq. (10) is one, for all i= 1, . . . , N) and, in fact, is the positive dominant eigenvector of the transition matrix T=(1−α) NJ+αMtD−1(where Jis the N×Nmatrix of 1’s), associated to the greatest positive eigenvalue λand is the solution to the system of equations given by (10) for all possible vertices of D. Since the digraph Dhas no sinks (i.e. vertices with out-degree 0), the matrix Tis stochastic by columns with dominant eigenvalue λ= 1, and the PageRank of a node vcan be interpreted as the probability of a user reaching vdirectly (with probability (1 −α)/N) or after following all appropriate links, each with probability α. On the other hand, if there are some sinks, then Tis not stochastic, and so the proposed method to make it stochastic is to connect every sink with all the vertices of the digraph, including the sink itself, which amounts to normalizing to 1 the vector pby simply dividing all its components by their overall sum. This 1-normalization is necessary to compare the PageRank of vertices in different websites under the same metric conditions. The PageRank vector pis computed by iterative methods based on the power method where fast convergence is guaranteed by the domination of the spectral radius of T, and the convergence speed is given by the second eigenvalue of T. For an 6
in-depth exposition of PageRank and the related linear algebra methods see [13] and references therein. Remark 1. Obviously, by the definitions, α–centrality and PageRank are equivalent measures of centrality on digraphs without vertices of out-degree greater than one. For this class of digraphs, formula (11) with D=I coincides with formula (7) for β= (1 −α)/N. Centrality measures as power series. Yet another view of PageRank is the analytical formulation given by Brinkmeier (see [6]), who conceived the PageRank function as a power series. In this setting, a formula is given that highlights the fact that the ranking of a vertex v, as assigned by PageRank, depends on the weighted contributions of each vertex in every walk that leads into v, being these contributions higher in value for vertices that are nearer in distance from v. For a given walk ρ=v1v2. . . vnin the graph (V, A), define the branching factor of ρby the formula D(ρ) = 1 od(v1)od(v2)···od(vn−1)(12) Then, for any vertex a∈V, we have P(a) = 1−α NX w∈VX ρ:w−→a αl(ρ)D(ρ) (13) where ρ:w−→adenotes a walk ρjoining a vertex wwith a, and l(ρ) is the length of ρ. We should remark that for effectively computing P(a) by the power series in (13), Brinkmeier implements a breadth-first search strategy where the inner sum is taken over all walks ending in aof a fixed length, and this is done for all possible lengths; that is, P(a) = 1−α NX l≥0X ρ:wl −→a αlD(ρ) (14) where ρ:wl −→ adenotes a walk ρfrom any wto aof length l. For α-centrality D(ρ) = 1 for all walks ρ, and formulas (13) and (14) become for each vertex vi xi=βX w∈VX ρ:w−→vi αl(ρ)=βX l≥0X ρ:wl −→vi αl with β= 1 as in Eq. (8) or β= (1 −α)/N. From now on we use β= (1 −α)/N for a precise comparison of α–centrality with PageRank. 7
3. Rearranging the structure of rooted trees Our starting case study is the set of rooted trees, where a tree with root ris an acyclic digraph with a maximal vertex r, such that for every vertex v6=rthere is a unique v–rpath. Vertices with in–degree 0 are called leaves. The root is the targeted page for improving its α-centrality or PageRank valuation. The height of a vertex in a rooted tree is the length of the path from the vertex to the root. The level Nkis the set of vertices with height k; the root is at level N0. The height of a rooted tree is the length of the longest path from a leaf to the root. Rooted trees belong to the class of digraphs without vertices of outdegree greater than one and so all the results of this Section expressed in terms of PageRank are also valid in the same way for α–centrality (cf. Remark 1). Remark 2. Since we are interested in studying the behavior of PageRank when localized in certain subdigraphs of the Web digraph, we think, in particular, of our trees as local closed web sites. This means that the value of Nin formula (10) is the number of vertices in the tree. To compute the PageRank of the root rof a tree all we need to do is count the number of vertices at each level of the tree. For each vertex wthere is a unique w–rpath of length kif w∈Nk, then by Eq. (13) we have: Theorem 3. If a rooted tree has Nvertices and height h, then the PageRank of its root ris given by the formula P(r) = 1−α N h X k=0 αknk(15) where nk:= |Nk|is the number of vertices of the kth–level, Nk, of the tree. Remark 4. Theorem 3 shows that we can do any rearrangements of links between two consecutive levels of a web set up as a rooted tree, and the PageRank of the root will be the same. Remark 5. Due to Theorem 3, we will from now on describe a rooted tree Tr, with root rand h≥0levels, each of cardinality n0= 1,n1, . . . , nh, as the string Tr= 1n1. . . nh. Also the PageRank for the root rof Tr, or for any other vertex seemed as the root of a subtree in Tr, will only depend on the height and the number of vertices at each level of Tr. 8
The following result shows that erasing vertices farthest away from the root improves the PageRank. This corroborates the known fact that the optimal configuration is a star, i.e. a rooted tree of height 1 (see e.g. [13]). Theorem 6. If in a tree Tr= 1n1. . . nhwe have that pvertices, 1≤p≤ nh, of the last level Nhare erased, then the PageRank of its root r,P(r), increases its value. Proof. After passing from the tree Tr= 1n1. . . nh, with N= 1 + n1+ . . . +nhvertices and PageRank P(r), to the tree T0r= 1n1. . . nh−1(nh−p) with N−pvertices and PageRank P0(r), we get P0(r)− P(r) = (1 −α)p (N−p)N(1 + n1α+. . . +nh−1αh−1−(N−nh)αh) =(1 −α)p (N−p)N(1 + n1α+. . . +nh−1αh−1−(1 + n1+. . . +nh−1)αh) =(1 −α)p (N−p)N((1 −αh) + n1(α−αh) + . . . +nh−1(αh−1−αh)) >0 because 0 < α < 1 and h≥1. Remark 7. Thus, in order to improve the PageRank of the root of a tree one can delete as many vertices from highest level to lowest, as the context permits. Conversely, if a new level of vertices is added to a tree, then the PageRank of its root decreases. Remark 8. The previous result holds in absolute terms, i.e., not disregarding the existence of a sink in the tree. Since in practice one needs to normalize the PageRank vector to guarantee the stochastic properties of the transition matrix ruling the system, and to compare the PageRanks of the pages in different trees under the same metric conditions, we should establish the truth of Theorem 6 for the 1-normalized version of PageRank. Proof of normalized version of Theorem 6. The key observation is that the PageRank at level Nk, understood as the sum of all PageRank of vertices at level Nkand which we denote as P(Nk), only depends of the 9
Proposition 17. Let (V, A)be an acyclic digraph labeled by E={1, . . . , N}, with x ¯(i) = xi, and let (˜ V , ˜ A)be its forest of paths labeled by ˜ E. The following properties hold: 1. The map p:˜ V−→ Esuch that p(xi1. . . xiq) = i1for any xi1. . . xiq∈ ˜ V, is a prelabeling on (˜ V , ˜ A)by E. 2. If Kis the arc set given by: K={(i, j)∈E×E:there exists (x, y)∈˜ Awith p(x) = iand p(y) = j} then the labeling bijection p:E−→ Vis a digraph isomorphism between (E, K)and (V, A). 3. The acyclic digraph (V, A)labeled by Ecan be recovered from its forest of paths (˜ V , ˜ A)prelabeled by E, being Vthe set of prelabels of ˜ Vand (u, v)∈Aif and only if (u, v)∈˜ A. Remark 18. The vertices of ˜ Vwith the same prelabel ihave the same closure ¯ i, and the induced subdigraph by the forest (˜ V , ˜ A)in ¯ iis a rooted subtree with root i. Figure 1 includes, on the left, an E-ordered acyclic digraph (V, A) by E={1,...,7}, with two maximal vertices; in the middle, its ˜ E-ordered forest of paths ( ˜ V , ˜ A) by ˜ E, the set of paths with maximal end; and, on the right, the forest of paths ( ˜ V , ˜ A) prelabeled by E. r r r AA A r AA A r r AA A r (V, A) by E 6 7 5 3 4 1 2 r r r AA A r r r r AA A r r r r AA A r QQQ Q r r AA A (˜ V , ˜ A) labeled by ˜ E 6531 7531 531 31 651 751 51 1 6541 7541 541 41 61 741 r r r AA A r r r AA A 2 6542 7542 542 42 742 r r r AA A r r r r AA A r r r r AA A r QQQ Q r r AA A (˜ V , ˜ A) prelabeled by E 6 7 5 3 6 7 5 1 6 7 5 4 6 7 r r r AA A r r r AA A 2 6 7 5 4 7 Figure 1: An acyclic digraph and its labeled and prelabeled forest of paths The α–centrality and PageRank vectors of an acyclic digraph can be obtained from its associated forest of paths. We then have the following extension of Theorem 3 to acyclic digraphs. Theorem 19. Let (V, A)be an acyclic digraph E-ordered by E={1, . . . , N} and let (˜ V , ˜ A)be its forest of paths prelabeled by E. Then 16
1. The α–centrality vector of (V, A)is x= (x1, . . . , xN) = 1−α N(y1, . . . , yN),with yi= i X k=0 nikαk(16) where nikis the number of vertices of the level Nikin the rooted subtree of the forest (˜ V , ˜ A)with root i(the induced sub-digraph in ¯ i). 2. The normalized α-centrality vector of (V, A)is x1=1 PN i=1 yi (y1, . . . , yN) 3. The PageRank vector of (V, A)is p= (P1,...,PN) = 1−α N(q1, . . . , qN),with qi= i X k=0 bikαk(17) where bikis the sum of the vertex’s branching of the level Nikin the rooted subtree of (˜ V , ˜ A)with root prelabeled by i. 4. The normalized PageRank vector of (V, A)is p1=1 PN i=1 qi (q1, . . . , qN) Proof. The α-centrality measures the contribution of the paths to each vertex, and this is what has been modelled with the forest of paths. This shows 1. For each vertex labeled by iwe consider the induced subdigraph by the forest of paths on the closure of i, and where each vertex is weighted by the branching of the corresponding subpath. Then statement 3 follows by Remark 14 and Proposition 15. Statements 2 and 4 are the 1-normalization of the corresponding formulas. Theorem 19 gives us another way of computing the α-centrality and PageRank measures for acyclic digraphs. Example 20. Let us compute the α-centrality and PageRank of the acyclic digraph shown in Figure 1. Using formula (7) with adjacency matrix M= (mij)1≤i,j≤7, with non null elements m31 =m41 =m42 =m51 =m53 = m54 =m61 =m65 =m74 =m75 = 1, we obtain the α-centrality x=1−α 71+4α+ 5α2+ 4α3,1 + α+ 2α2+ 2α3, 1 + α+ 2α2,1+2α+ 2α2,1+2α, 1,1 17
One can see that this expression coincides with that given by formula (16). Now compute the PageRank using formula (11) to get p=1−α 71 + 7 3α+13 12α2+1 2α3,1 + 1 2α+5 12α2+1 6α3, 1 + 1 3α+1 3α2,1 + 5 6α+1 3α2,1 + α, 1,1 Once again this expression can be easily obtained using formula (17). For instance, to compute the PageRank of the vertex 1 in the acyclic digraph (first term in the vector above) we look in the induced subgraph by the forest of paths on the closure of 1, and obtain the value P1=1−α 71 + 7 3α+13 12α2+1 2α3 where 7 3,13 12 and 1 2are each equal to the sum of the branching of the vertices of its corresponding level, namely, N1,N2and N3, in the forest of paths (˜ V , ˜ A). Similarly the PageRank of vertex 4 is P4=1−α 71 + 5 6α+1 3α2 where the coefficients are obtained from the branching of the levels in the induced subgraph by the forest of paths on the closure of 4. Figure 2 shows the induced subdigraph in the closure of the vertices 1, 2, 3, 4 and 5, of the prelabeled forest of paths in Figure 1. s s s s s s s AA A s s s s AA A s QQQQs s AA A AA A 1 6 1 6 1 3 1 1 6 1 6 1 3 1 1 12 1 12 1 6 1 2 1 2 1 4 s s s AA A s s s AA A 2 1 12 1 12 1 6 1 2 1 4 s s s AA A s 3 1 6 1 6 1 3 s s s AA A s s AA A 4 1 6 1 6 1 3 1 2 s s s AA A 5 1 2 1 2 Figure 2: Rooted subtrees of ( ˜ V , ˜ A) with branching The previous Theorem shows that Remark 4 holds for α–centrality as well as PageRank (provided one considers the sum bkof all branchings of 18
vertices at level k) on acyclic digraphs; that is, one can do any rearrangement of links between consecutive levels of the network (being acyclic digraph) and the α–centrality or PageRank measure will be the same. Remark 5 can also be updated in this context of acyclic digraphs considering bkinstead of nk. However, Theorem 6 does not hold for either α-centrality or PageRank applied to measuring centrality of maximal vertices in acyclic digraphs. We give an example below where it occurs that removing vertices with outdegree greater than one from the last level can either increase or decrease the values of the α-centrality and/or PageRank measures of the root of the acyclic digraph. In Figure 3 we have, on the left, an acyclic digraph with 2k+3 vertices, kvertices from the last level (level N3) connected to the vertex 2. In the middle, we have the forest of paths with vertices weighted by their branching. The right-most figure shows the reduced digraph obtained by removing the kvertices of degree 2 at level N3. s s s s s s s s s @ @ @ AA AH H H H H 1 2 3 . . . . . . k k s s s s s s s s s s s s @ @ @ AA AH H H H H 1 1 1 . . . . . . . . . 1 2 1 2 1 2 1 2 1 2 1 2 1 1 1 s s s s s s @ @ @ AA AH H H H H 1 2 3 . . . k Figure 3: Acyclic digraph, its forest of paths and reduced digraph With the notations of Theorem 19, for the α–centrality of the acyclic digraph in Figure 3 we have y1= 1 + α+ (k+ 1)α2+ 2kα3, y2= 1 + (k+ 1)α+ 2kα2, y3= 1 + 2kα, yi= 1,for i= 4,...,2k+ 3,and 2k+3 X i=1 yi= 2k+ 3 + (3k+ 2)α+ (3k+ 1)α2+ 2kα3 and for the acyclic digraph without the kvertices of outdegree 2 we have y0 1= 1 + α+α2+kα3, y0 2= 1 + α+kα2, y0 3= 1 + kα, y0 i= 1,for i= 4, . . . , k + 3,and k+3 X i=1 y0 i=k+ 3 + (k+ 2)α+ (k+ 1)α2+kα3 19
Then, in relative terms, we have x0 1 Pk+3 i=1 x0 i≥x1 P2k+3 i=1 xi⇐⇒ y0 1 2k+3 X i=1 yi≥y1 k+3 X i=1 y0 i ⇐⇒ (α+ 1) α−1−√k+ 1 kα−1 + √k+ 1 k≤0 Hence, x0 1 Pk+3 i=1 x0 i≥x1 P2k+3 i=1 xi for k≤3, α ∈(0,1),and x0 1 Pk+3 i=1 x0 i≤x1 P2k+3 i=1 xi for k > 3, α ∈1+√k+1 k,1 For the PageRank of the acyclic digraph in Figure 3 we have q1= 1+α+(k 2+1)α2+3k 2α3,q2= 1+(k 2+1)α+3k 2α2,q3= 1+ 3k 2α,qi= 1, for i= 4,...,2k+ 3, and 2k+3 X i=1 qi= 2k+ 3 + (2k+ 2)α+ (2k+ 1)α2+3k 2α3, and for the acyclic digraph without the kvertices of outdegree 2 we have q0 i=y0 i, i = 1, . . . , k + 3. Then, in relative terms, we have P0 1 Pk+3 i=1 P0 i≥P1 P2k+3 i=1 Pi⇐⇒ q0 1 2k+3 X i=1 qi≥q1 k+3 X i=1 q0 i⇐⇒ (m−3)α2−4α−2≤0 Hence, P0 1 Pk+3 i=1 P0 i≥P1 P2k+3 i=1 Pi for k≤9, α ∈(0,1),and P0 1 Pk+3 i=1 P0 i≤P1 P2k+3 i=1 Pi for k > 9, α ∈2+√2k−2 k−3,1 As a consequence, the notion of queue tree has no analogue in the context of acyclic digraphs. In the remainder of this work we shall concentrate on the analysis of the behavior of PageRank in more general structures. Observing that αcentrality can be seen as the particular case of PageRank where the branching of all paths is 1, from each result about PageRank we will obtain a similar result for α-centrality as corollary. 20
5. The bidirectional case We turn now to trees with bidirectional as well as unidirectional arcs. A digraph Br= (V, A) is a bidirectional tree with root rif its set of arcs Acan be partitioned in two disjoint sets A1and A2such that: •(V, A1) is a partial tree with root r(the underlying tree of Br), and •if uv ∈A2then vu ∈A1, and in this case we have the bidirectional arc (or 2-cycle) vuv. Observe that for each arc uv ∈A2the corresponding bidirectional arc vuv defines an infinite number of walks ending at the root r(just as would do any cycle within a tree). Henceforth, to the effect of computing the PageRank of rwith formula (13), we can view each arc uv ∈A2as a path of infinite length hanging from the vertex v, and containing alternatively copies of vertices u and v, where at each vhangs a copy of the sub–tree rooted at v,Tv, and at each uhangs a copy of the remainder of the sub–tree rooted at uafter removing from it the sub–tree Tv, that is, Tu\Tv. Note that Tu(and Tv) may contain bidirectional arcs. Extending this idea through all bidirectional arcs, we can view the bidirectional tree Bras its associated infinite tree. Figure 4 shows a bidirectional tree Brwith two disjoint bidirectional arcs, vuv and v0u0v0(leftmost tree); next to it the bidirectional tree with an infinite branch corresponding to vuv; and the rightmost tree is the full infinite tree associated to Br. q q q q q q q q q q q q q q Br A A?? H H H A A H H H u0v0 u r v q q q q q q q q q q q q q q ? A A H H H A A H H H u0v0 u r v q q q q q q q q q q q q ? A A H H H H H H A A u0v0 u v q q q q q q q q q q q q ? A A H H H H H H A A u0v0 u v q q q q q q q q q q q q q q A A H H H A A H H H u0v0 u r v q q q q q q q q q q q q A A H H H H H H A A u0v0 u v q q q q q q q q q q q q A A H H H H H H A A u0v0 u v q q q q q q q q q q A A A A A A A A u0 v0 u0 v0q q q q q q q q q q A A A A A A A A u0 v0 u0 v0q q q q q q q q q q A A A A A A A A u0 v0 u0 v0 Figure 4: Bidirectional tree Brand its associated infinite tree in two stages. This view of Bras an infinite tree makes it easier to understand the interpretations we do below of formula (13) adapted to our trees. In formula 21
(13), the sum is taken over all vertices wconnected through a walk to a. In the associated infinite tree this walk is a unique path ρconnecting w with a. This path could have various incidence of bidirectional arcs. On the other hand, each bidirectional arc vuv, with u6=rand od(u) = 2, produces an infinite number of walks: u,uvu,uvuvu, . . . , with branching factors D(u) = 1, D(uvu) = 1/2, D(uvuvu) = 1/22, . . . ; hence, summing over all these walks we get X ρ:u−→u αl(ρ)D(ρ) = 1 + α2 2+α4 22+··· =1 1−α2/2 Therefore, if the path ρ:w−→ain formula (13) contains qvertices, each meeting a bidirectional arc, the contribution to P(a) of the possible walks produced on ρis 1/(1 −α2/2)q. If the bidirectional arc is vrv, with od(r) = 1, and hence D(rvr . . . vr) = 1 for any walk on this arc, we get that the contribution to P(a) is 1/(1 −α2). All the above observations lead to the following result on computing the PageRank on bidirectional trees. Theorem 21. Let Br= (V, A)be a bidirectional tree rooted at r. (1) If od(r)=0, then the PageRank of any a∈Vis given by P(a) = 1−α NX w∈V ρ:w−→a αl(ρ) 2n(1 −α2/2)q(18) (2) If od(r)=1with bidirectional arc rvr, then P(a) = 1−α NX w∈V ρ:w−→a αl(ρ) 2n(1 −α2/2)q,for a /∈ {r, v}(19) and P(a) = 1−α NX w∈V ρ:w−→a αl(ρ) 2n(1 −α2/2)q−1(1 −α2),for a∈ {r, v}(20) where in all cases, ρ:w−→ais the unique path from the vertex wto a, and l(ρ)is the length of this path; nis the number of bidirectional vertices (i.e. with od(u)=2) not being an end-vertex in ρ;qis the number of bidirectional arcs meeting ρ. 22
In particular, if od(r) = 0, then n=qand so P(r) = 1−α NX w∈V ρ:w−→a αl(ρ) (2 −α2)q(21) And if od(r) = 1, then n=q−1 and P(r) = 1−α NX w∈V ρ:w−→a αl(ρ) (2 −α2)q−1(1 −α2)(22) For α-centrality formulas (18) to (22) coincide. Corollary 22. Let Br= (V, A)be a bidirectional tree rooted at r. Then the α-centrality of a vertex vi∈V,i= 1, . . . , N, is given by xi=1−α NX w∈V ρ:w−→vi αl(ρ) (1 −α2)q(23) where ρ:w−→viis the unique path from the vertex wto vi,l(ρ)is the length of this path, and qis the number of bidirectional arcs meeting ρ. Our proposed formula for computing the PageRank of the root in the case of unidirectional trees (Eq. (15)) is founded on Brinkmeier’s breadthfirst search implementation of his analytical formulation (Eqs. (14) and (13)). We would like to have a result on the same spirit of counting by levels for bidirectional trees. For a breadth-first search type of computation of PageRank on a bidirectional tree, we must classify somehow the vertices by levels of the tree. For each k > 0, the vertices at level Nk={vk1, . . . , vknk}are characterize by the number of bidirectional arcs met by their paths which ends in the root, vki . . . r. Hence, nk=n0 k+···+nk+1 k, where nq kdenotes the number of vertices at level Nkhaving qbidirectional arcs meeting their paths to r. Some of these nq kcould be null. The non-null nq kmany vertices contributes to the summation in equations (21) and (22) the quantities nq kαk/(2 −α2)qand nq kαk/(2 −α2)q−1(1 −α2) according to either case of od(r) = 0 or od(r) = 1. Thus, we have the following result. Theorem 23. Let Brbe a bidirectional tree rooted at r, with Nvertices and height h > 0. 23
(1) If od(r)=0,P(r) = 1−α N h X k=0 k X q=0 nq kαk (2 −α2)q (2) If od(r)=1,P(r) = 1−α N h X k=0 k X q=0 nq+1 kαk (2 −α2)q(1 −α2) where qis the number of bidirectional arcs met by the path ending in r, but distinct from the bidirectional arc incidence with r, if such bidirectional arc exists. We can give a more succinct vectorial formulation of the previous result, if we develop the sums “by rows” (outmost sum) and group column terms in a vector. Theorem 24. Let Brbe a bidirectional tree rooted at r, with Nvertices and height h > 0. Then P(r) = 1−α N h X q=0 ∆q·Λq (2 −α2)qif od(r)=0 1−α N h X q=0 ∆0 q·Λq (2 −α2)q(1 −α2)if od(r)=1 where ∆q= (nq q, nq q+1, . . . , nq h),∆0 q= (nq+1 q, nq+1 q+1, . . . , nq+1 h)and Λq= (αq, αq+1,. . . , αh). Corollary 25. Let Brbe a bidirectional tree rooted at r, with Nvertices and height h > 0. Then the α–centrality of the root ris given by xr=1−α N h X k=0 k X q=0 nq kαk (1 −α2)q=1−α N h X q=0 ∆q·Λq (1 −α2)q where qis as in Theorem 23, ∆qand Λqare as in Theorem 24. 5.1. Case of s-cycles In this section we generalize the computation of PageRank to bidirectional trees of height h > 1 on which we close permissible cycles of any length obtained by joining vertices from level Njwith vertices from level Nk, for 0 ≤j < k ≤h. In this way we can transform bidirectional arcs vuv into cycles vuvs−1. . . v2vof longer length, where the arc uv close the new 24
s s s s s A AK 6 6 r u v s t - s s s s s s s A AK 6 6- ? r u v v3 v2 s t = s sss s s s 6 6 7 3 6 6 r u v v2 v3 s t s s s s s A AK 6 6 r u v s t - s s s s s A AK 6 6 r u v s t Figure 5: Examples of cyclical trees. cycle inserted in the rooted tree. Also the arc uv of the bidirectional arc vuv can be substituted by a new arc ut closing a larger path t . . . vu in the tree. In Figure 5 we exhibit some examples of these transformations. Formally we define a digraph Cr= (V, A) as a cyclical tree with root r, if its set of arcs Acan be partitioned in two disjoint sets A1and A2such that: •(V, A1) is a partial tree with root r(the underlying tree of Cr), and •if uv ∈A2then there is a path vsvs−1. . . v1, beginning at vs=u, ending at v1=vand with intermediate vertices and arcs vi+1viin A1, and in this case we have the s-cycle vuvs−1. . . v2v. We proceed to compute the PageRank of these cyclical trees. Similarly to the bidirectional case, we have that each cycle vu . . . v of length l≥2 and od(u) = 2 produces an infinite number of walks: u,uv . . . u,uv . . . uv . . . u, . . . , with branching factors D(u) = 1, D(uv . . . u)=1/2, D(uv . . . uv . . . u) = 1/22, . . . ; hence, summing over all these walks we get X ρ:u−→u αl(ρ)D(ρ) = 1 + αl 2+α2l 22+··· =1 1−αl/2 Therefore, if the path ρ:w−→acontains qvertices, meeting qcycles of length l1,l2, . . . , lq, respectively, then the contribution to P(a) of the possible walks produced on ρis 1 1−αl1/2·1 1−αl2/2··· 1 1−αlq/2 If the cycle is vr l . . . v, with od(r) = 1, and hence D(rv . . . r) = 1, we get that the contribution to P(a) is 1/(1 −αl). 25
References [1] C. C. Aggarwal. Social Network Data Analytics, Springer, 2011. [2] C. C. Aggarwal, A. Khan, and X. Yan. On Flow Authority Discovery in Social Networks. Proc. SIAM Conf. on Data Mining (2011) 522–533. [3] A. Arasu, J. Novak, A. Tomkins, J. Tomlin. PageRank computation and the structure of the Web (2002) 11th Int. WWW Conf. [4] S. Brin, L. Page. The anatomy of a large scale hypertextual web search engine. Comp. Net. and ISDN Syst., 33 (1998) 107–117. [5] S. Brin, R. Motwami, L. Page, T. Winograd. The PageRank citation ranking: Bringing order to the web. Tech. Rep., CS, Stanford, 1998. [6] M. Brinkmeier. PageRank revisited, ACM Trans. on Internet Technologies, 6, 3 (2006) 282–301. [7] M. Brinkmeier. Distributed calculation of PageRank using strongly connected components, Proc. of the I2CS’05 in Paris (LNCS), 2005. [8] P. Bonacich. Power and centrality: A family of measures. American Journal of Sociology (1987), 1170–1182. [9] P. Bonacich and P. Lloyd. Eigenvector-like measures of centrality for asymmetric relations. Social Networks, 23 (3), (2001) 191–201. [10] S. D. Kamvar, T. H. Haveliwala, C. D. Manning and G. H. Golub. Exploiting the block structure of the Web for computing PageRank. Tech. Rep., Stanford, 2003. [11] L. Katz. A new status index derived from sociometric analysis. Psychometrika, 18 (1953) 39–43. [12] D. Kempe, J. Kleinberg and E. Tardos. Maximizing the spread of influence through a social network. In: Proc. of the 9th ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining (2003) 137–146. [13] A. N. Langville and C. D. Meyer. Google’s PageRank and Beyond: The Science of Search Engine Rankings. Princeton University Press, 2006. [14] C. Mariju´an, Birational equivalence of reduced graphs, Journal of Pure and Applied Algebra 124 (1998) 173-199. 32
[15] C. Mariju´an, Finite topologies and digraphs, Proyecciones Journal of Mathematics 29, 3 (2010) 295-311. [16] M. Newman. Networks: An Introduction. Oxford University Press, 2010. [17] J. Tang, J. Sun, C. Wang, and Z. Yang. Social influence analysis in large-scale networks. In: Proc. of the 15th ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining (2009) 807–816. 33 View publication statsView publication stats