EdgeRank: The Secret Sauce That Makes Facebook's News Feed Tick
techcrunch.com
techcrunch.com
g.v(user_id).outE('friend').as('f').inV.outE('news').as('n').inV.sort{ f.affinity * n.weight * n.decay }.reverse()
From what I could glean from the article, weight is static for each content type, and affinity is a calculated value. Facebook may update the affinity value after each user action or run some kind of PageRank-type algorithm for friends and update it periodically.
But in Gremlin, you can calculate PageRank in 2 lines.
You can ask questions in the Gremlin Users group: https://groups.google.com/forum/#!forum/gremlin-users
And if you're a Python developer, check out Bulbflow, a new persistence framework for graph databases that uses Gremlin as its query language (http://bulbflow.com/).
I'll just leave this link here for you guys to read: http://news.ycombinator.com/item?id=2797060