Regular Path Query finds all pairs of vertices that are connected with a path that conforms to the regular expression.