Large-Scale Graph Processing Using Apache Giraph by Sherif Sakr Faisal Moeen Orakzai Ibrahim Abdelaziz & Zuhair Khayyat
Author:Sherif Sakr, Faisal Moeen Orakzai, Ibrahim Abdelaziz & Zuhair Khayyat
Language: eng
Format: epub
Publisher: Springer International Publishing, Cham
The following methods of the Computation interface are generally not required to be implemented as Giraph comes with a class AbstractComputation which has this method already implemented. You just have to extend this class for writing your computation after which you can call these methods whenever needed.
\hskip-1.6pc{\small\sffamily Fig. 3.3Social graph
3.2 Vertex Similarity Algorithm
Let us use the knowledge gained in the previous sections to write a simple vertex similarity algorithm for finding friends’ similarity in terms of their common friends. Figure 3.3 shows a simple social graph. Each vertex in the figure represents a person and the edges represent friendship. We want to assign a weight to each edge, representing the similarity between the persons it connects together. The weight of an edge will be higher if the persons it connects, have more common friends. Thus the weight an edge between two persons shows the similarity between the two persons. We use Jaccard Index as the similarity measure which is used for finding similarity between two sets. If A and B are two sets, Jaccard Index can be written as the size of the intersection between A & B divided by the size of the union of A & B:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5474)
The Sports Rules Book by Human Kinetics(4294)
The Age of Surveillance Capitalism by Shoshana Zuboff(4210)
ACT Math For Dummies by Zegarelli Mark(3994)
Unlabel: Selling You Without Selling Out by Marc Ecko(3588)
Blood, Sweat, and Pixels by Jason Schreier(3566)
Hidden Persuasion: 33 psychological influence techniques in advertising by Marc Andrews & Matthijs van Leeuwen & Rick van Baaren(3472)
The Pixar Touch by David A. Price(3364)
Bad Pharma by Ben Goldacre(3356)
Urban Outlaw by Magnus Walker(3340)
Project Animal Farm: An Accidental Journey into the Secret World of Farming and the Truth About Our Food by Sonia Faruqi(3177)
Kitchen confidential by Anthony Bourdain(3009)
Brotopia by Emily Chang(3001)
Slugfest by Reed Tucker(2941)
The Content Trap by Bharat Anand(2860)
The Airbnb Story by Leigh Gallagher(2799)
Coffee for One by KJ Fallon(2566)
Smuggler's Cove: Exotic Cocktails, Rum, and the Cult of Tiki by Martin Cate & Rebecca Cate(2471)
Beer is proof God loves us by Charles W. Bamforth(2371)