Is it possible to obtain the in-neighbors (predecessors) for a given vertex?

I need it because I want to implement SimRank in GSQL: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.similarity.simrank_similarity.html

which needs to calculate the in-neighbors for a pair of vertices, recursively.