1.0 - 8.00 - EigenVectorCentrality Example 1: Eigenvector Centrality (by Default) - 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

In the following figure, nodes represent college sophomores and edges represent the number of elective subjects that both sophomores have taken.

EigenVectorCentrality Examples Input Graph

The graph in the figure is represented by the vertices and edges tables sophomores and common_classes, respectively.

vertices: sophomores
id name
A Allen
B Becky
C Cathy
D Darren
edges: common_classes
startid endid electives
A B 1
A C 1
B C 1
C D 1
D A 1

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')
  EdgeWeight ('electives')
) AS dt ORDER BY centrality DESC;

Output

id centrality
C 0.649450550239096
D 0.528366549347061
A 0.418290184899757
B 0.352244366231374