EigenvectorCentrality Example: Bonacich Centrality - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.10
1.1
Published
October 2019
Language
English (United States)
Last Update
2019-12-31
dita:mapPath
ima1540829771750.ditamap
dita:ditavalPath
jsj1481748799576.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

Input

Input tables are from EigenvectorCentrality Example: Eigenvector Centrality:

  • Vertices: sophomores
  • Edges: common_classes

SQL Call

SELECT * FROM EigenvectorCentrality (
  ON sophomores AS Vertices PARTITION BY id
  ON common_classes AS Edges PARTITION BY startid
  USING
  TargetKey ('endid')
  Accumulate ('id')
  Family ('bonacich')
  Beta (0.01)
  EdgeWeight ('electives')
) AS dt ORDER BY centrality DESC;

Output

 id centrality          
 -- ------------------- 
 b  0.34869952073313154
 a   0.4451290264684832
 c   0.6321231958668254
 d    0.529800961949689

Download a zip file of all examples and a SQL script file that creates their input tables from the attachment in the left sidebar.