Skip to content

Extract node pagerank

network

Calculate network node pagerank.

Example

extract_node_pagerank(links) -> (ds.page_rank)

Usage

The following are the step's expected inputs and outputs and their specific types.

extract_node_pagerank(links: dataset, {"param": value}) -> (pagerank: number)

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Inputs


links: dataset

A dataset of links between nodes, i.e. containing source, target and weight columns.

Outputs


pagerank: column:number

Calculates the Google PageRank for the specified vertices.

Parameters


  • If the graph has a weight edge attribute, then this is used by default. Weights are used to calculate weighted shortest paths, so they are interpreted as distances.

  • The damping factor may be set between 0 and 1. More information on the original paper here http://infolab.stanford.edu/~backrub/google.html


directed: boolean = False

Whether the links are directed or not.

Example parameter values:

  • false

damping: number

The damping factor (ā€˜dā€™ in the original paper).

Range: 0 ā‰¤ damping ā‰¤ 1

Example parameter values:

  • 0.55
  • 0.85

weights: string | null

Optional Column name containing positive weights for calculating weighted betweenness.