English

1

xi ∝ ∑j∈ν(i) xj = ∑j aijxj   ⟶   Ax = λx

2

Rt(i) = αN + (1 − α) ∑j∈pred(i) Rt−1(j)kout(j)

3

4

5

6

import networkx as nx

D = nx.DiGraph([(1, 0), (1, 7), (2, 0), (2, 7), (3, 0), (3, 7), (4, 0),
                (8, 7), (9, 7), (0, 6), (6, 0), (6, 5), (7, 4)])
PR_dict = nx.pagerank(D)                 # D is a DiGraph
PR_dict = nx.pagerank(D, alpha=0.85)     # the same: NetworkX's alpha = 1 − α

G = nx.Graph(D)                          # undirected version
x = nx.eigenvector_centrality(G)         # section 1