as per community post here https://community.plot.ly/t/r-igraph-tutorial-incorrect-and-producing-wrong-results/5422