Add igraph functions