Of course in an undirected graph, meaning an undirected path from S to V, whereas a directed graph in a directed path from S to V. That means a path where every arc in the path gets traversed in the forward direction. 