Alternatively, each point of the diamond cubic structure may be given by four-dimensional integer coordinates whose sum is either zero or one. Two points are adjacent in the diamond structure if and only if their four-dimensional coordinates differ by one in a single coordinate. The total difference in coordinate values between any two points (their four-dimensional Manhattan distance) gives the number of edges in the shortest path between them in the diamond structure. The four nearest neighbors of each point may be obtained, in this coordinate system, by adding one to each of the four coordinates, or by subtracting one from each of the four coordinates, accordingly as the coordinate sum is zero or one. These four-dimensional coordinates may be transformed into three-dimensional coordinates by the formula