Selecting Contiguous Nodes in a Sub-path