Adds code for graph with top friends.