Generate distance values node