The Yifan Hu layout algorithm belongs to the category of force-directed algorithms, which includes the Force Atlas and Fruchterman Reingold algorithms. This algorithm is faster than the Force Atlas algorithm because of the way it optimizes the overall internode repulsions in the network.
YiFan Hu layout
Getting ready
If you worked through the previous recipes in this chapter, you should have the data file, retweet-graph.Rdata, and ensure that it is in your R working directory. If not, you should download these data files and place them in your R working directory. As of now, R doesn't provide any package that supports the yifan hu algorithm, so we will use the graph data from R and leverage Gephi (a popular graph visualization...