1.0 - 8.00 - PageRank Example - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.0
8.00
Release Date
May 2019
Content Type
Programming Reference
Publication ID
B700-4003-098K
Language
English (United States)

Input

Input tables are from AllPairsShortestPath Example 1: Unweighted, Unbounded Graph:

  • vertices: callers
  • edges: calls

SQL Call

SELECT * FROM PageRank (
  ON callers AS vertices PARTITION BY callerid
  ON calls AS edges PARTITION BY callerfrom
  USING
  Targetkey ('callerto')
  EdgeWeight ('calls')
  Accumulate ('callerid', 'callername')
) AS dt ORDER BY callerid;

Output

callerid callername pagerank
1 John 0.0890114925255936s
2 Carla 0.122657805325077
3 Simon 0.0957407550854902
4 Celine 0.144421189008967
5 Winston 0.0890114925255936
6 Diana 0.459157265529279