igraph loading function added