Unicorn: A System for Searching the Social Graph [pdf]
facebook.com
facebook.com
If you are working on a smaller scale... it's easier.
Post: http://maxdemarzi.com/2013/01/28/facebook-graph-search-with-...
UNICORN: Identifying Potential Terrorists by Walking the Graph of Known Social Connections