The above link is code to get bond length matrix from smiles.
Now are we able to convert to an XYZ file?
The above link is code to get bond length matrix from smiles.
Now are we able to convert to an XYZ file?
jheindel's comment points to an answer:
"Here is a question and answer that explains how to do this if you have the full set of distances. In general though, it may not be possible to reconstruct the full 3-D geometry from just the bond lengths. For instance, in methane, there will only be four bond lengths in your weighted adjacency matrix, which is insufficient to get the 9 degrees of freedom necessary to embed the molecule in 3-D space. https://math.stackexchange.com/q/156161/202425"
If someone would like to write an answer, I can delete this Community Wiki answer (you can just ask me in a comment on this answer, or click "flag" and "In need of moderator intervention" and explain yourself).