Creating RDGs with GlitteringMeasuring graph density with triangle countingGraphX partitioning strategiesRunning the built-in triangle counting algorithmImplement triangle counting with GlitteringStep one – collecting neighbor IDsSteps two, three, and four – aggregate messagesStep five – dividing the countsRunning the custom triangle counting algorithmThe Pregel APIConnected components with the Pregel APIStep one – map verticesSteps two and three – the message functionStep four – update the attributesStep five – iterate to convergenceRunning connected componentsCalculating the size of the largest connected componentDetecting communities with label propagationStep one – map verticesStep two – send the vertex attributeStep three – aggregate valueStep four – vertex functionStep five – set the maximum iterations countRunning label propagationMeasuring community influence using PageRankThe flow formulationImplementing PageRank with GlitteringSort by highest influenceRunning PageRank to determine community influencers