Dynamically calculated values from last vertex to select outgoing edges for further traversal - Apache TinkerPop