Determine if weighted graph can be physically constructed, treating weight as Euclidean distance (ie check if subset of distances is self-consistent) Suppose we want to position some points in space, given that we know at least some of the distances between them. How can we determine if this is possible? And if it is possible, can we determine the least dimension in which it is possible and algorithmically find a possible (clearly not unique) solution? This is basically the problem of physically constructing a weighted graph, where the edges represent distances between two vertices, and we don't care how far apart are any pairs of vertices not joined by an edge.
Clearly we should check that the given distances satisfy the triangle equality, but for a fixed dimension this itself is not enough. Suppose we know that a subset of three points A, B and C each lie a (Euclidean) distance of one from each other. Then there is no way to position them in one dimension. However, in two-dimensional space they can be physically constructed, as the vertices of an equilateral triangle. So there was no violation of the triangle inequality, which means the one-dimensional issue we hit was some other problem. Similarly if point D must be at unit distance from A, B and C then two dimensions are not enough, but a three-dimensional tetrahedron would resolve the problem. If A, B, C, D, E must all be at unit distance from each other, then even three dimensions are not enough...
An algebraic way to look at the three-point case is that equations $(x_A - x_B)^2 = 1^2$, $(x_B - x_C)^2 = 1^2$, $(x_C - x_A)^2 = 1^2$ are inconsistent. But we can extend to another dimension, $(x_A - x_B)^2 + (y_A - y_B)^2 = 1^2$ etc, to make them consistent (albeit under-determined). So long as there is no violation of the triangle inequality, can we always keep adding extra dimensions until the system of  simultaneous quadratic equations becomes consistent? Is there an algorithm to determine whether the equations are consistent? (Bear in mind we will not necessarily know the distance between each pair of points.) Is there instead a more geometric approach we can use?
Related questions: Define positions of a set of points given (only) the distances between them (here I consider that we may know only a subset of the distances), When can we achieve given distances between four points? and When can a weighted graph be embedded in a metric space? (not necessarily Euclidean, and which has nice albeit trivial answer). This interesting question didn't receive an answer, but looks at sets of distances rather than assigning the distances to have to lie between particular vertices: Sets of distances between points that do not form distinct shapes
 A: Determining the least dimension in which it is possible is hard even in restricted cases. Suppose that all the distances which are specified are equal to $1$, and we want to know if the graph can be embedded in $\mathbb R^2$. This is equivalent to trying to determine if the graph is a unit distance graph, and Wikipedia says:

It is NP-hard, and more specifically complete for the existential theory of the reals, to test whether a given graph is a subgraph of a unit distance graph, or is a strict unit distance graph.

(The citation is Schaefer, 2013. We're looking at the "subgraph of a unit distance graph" case here, since we don't know whether the distances left unspecified are equal to $1$.)
If we only want to know that the graph can be embedded in some dimension, but we don't care which one, then it's possible that the problem becomes easier. If we had all the distances given, then the question becomes equivalent to checking that all Cayley–Menger determinants giving the volumes of simplices formed by subsets of the points are nonnegative.
With some distances unknown, this is almost-but-not-quite a semidefinite program: we want $$(-1)^{n+1} \begin{vmatrix} 
0 & d_{01}^2 & d_{02}^2 & \cdots & d_{0n}^2 & 1 \\
d_{01}^2 & 0 & d_{12}^2 & \cdots & d_{1n}^2 & 1 \\
d_{02}^2 & d_{12}^2 & 0 & \cdots & d_{2n}^2 & 1 \\
\vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
d_{0n}^2 & d_{1n}^2 & d_{2n}^2 & \cdots & 0 & 1 \\
1 & 1 & 1 & \cdots & 1 & 0
\end{vmatrix} \ge 0$$ and we want the same thing to happen for all principal submatrices of this matrix which include the last row and column. If it weren't for that italicized condition, then we could just write down a matrix with some variable entries that we want to be positive semidefinite, which is a tractable problem; I don't know how much the italicized condition ruins our life.
