Check if a path can be traversed from this node
0 for success
-1 if the path was empty
index in the path at which the traversal failed