Extracting paths from data