The NetRank algorithm

Recall the NetRank calculation before we introduced normalization and convergence. For our 3-node example graph, we represented this calculation with the following table:

nr table

To write the NetRank algorithm (which computes the values in the above table), we need a mathematical way to say, "everyone who has voted for node x." We define InNeighhorhood for this purpose. Given a directed graph G=(V,E) and a node x, the InNeighborhood of x is:

InN(x) = {y: (y,x) ∈ E} = the set of all nodes with directed edges into x

We can now state the NetRank algorithm:

NetRank Algorithm:

Input:

  1. Directed graph G=(V,E)

Output:

  1. Influence scores for nodes in V

Steps:

  1. For each node x∈V: NR0(x)=1
  2. i = 1
  3. For each node x∈V:
    NRi(x) =
    Σ
    y∈InN(x)
    (NR(i-1)(y))
  4. If normalized NRi values have converged, then we're done
  5. i = i + 1
  6. Go to step 3

Example: We will calculate iterations 0-5 of NetRank using the graph from the very beginning of this chapter:

centrality

The table below includes a column for the InNeighborhood of each node. As we see in step 3 of the algorithm above, this is exactly the information that determines the pattern of computing NRi from NR(i-1). When constructing a NetRank table, writing this information explicitly helps organize the subsequent arithmetic.

Node x
InN(x) NR0(x) NR1(x) NR2(x) NR3(x) NR4(x) NR5(x)
1 {3,5} 1 2 3 5 10 18
2 {4,1} 1 2 5 8 15 26
3 {2,5} 1 2 3 7 11 22
4 {2,1,5} 1 3 5 10 16 32
5 {3} 1 1 2 3 7 11

The NetRank scores above have not been normalized. Skipping the process of normalization makes it impossible to detect convergence but easy to do a pre-specified number of iterations manually (without a calculator).

Node 4 is the most influential node according to NR5. Using a spreadsheet, we can program the above calculation and include normalization. With a desired precision of 0.001, we observe convergence after 34 iterations. Node 4 is still the most influential node. The normalized NetRank values are

  • normalized NR34(1) =  0.166
  • normalized NR34(2) =  0.248
  • normalized NR34(3) =  0.195
  • normalized NR34(4) =  0.285
  • normalized NR34(5) =  0.107
 
Joomla Templates by Joomlashack