The R function is neighborhood
with mode="in"
: http://igraph.org/r/doc/neighborhood.html E.g.
g1 <- graph(c(1,4, 1,2, 1,3, 3,2, 2,5))
neighborhood(g1, 5, order=vcount(g1), mode="in")[[1]]
# [1] 5 2 1 3
This will also include the queried vertex itself, but it is easy to remove that:
setdiff(neighborhood(g1, 5, order=vcount(g1), mode="in")[[1]], 5)
# [1] 2 1 3