NetworkX

Previous topic

networkx.pagerank_scipy

Next topic

networkx.hits

networkx.google_matrix

google_matrix(G, alpha=0.84999999999999998, nodelist=None)

Return the Google matrix of the graph.

Parameters:

G : graph

A NetworkX graph

alpha : float

The damping factor

nodelist : list, optional

The rows and columns are ordered according to the nodes in nodelist. If nodelist is None, then the ordering is produced by G.nodes().

Returns:

A : NumPy matrix

Google matrix of the graph