integrated Node.get_or_create_path with Path class