Add R + igraph functions