# How can I extract coordinates of the nodes of my graph?

I have this output for my graph.

In[85]:= PropertyList[{g, 1}]

Out[85]= {"TerminalsCoordinates", VertexCoordinates, VertexShape, VertexShapeFunction, VertexSize, VertexStyle}


How can I extract the vertices info separately to different sets?

-
Did you click on the "show complete Mathematica input" button, for starters? – J. M. Apr 24 '13 at 2:45
Sorry I am new here and don't know how to ask the questions?Could you please tell me how to ask that kind of questions?? – Alex Apr 24 '13 at 6:39
Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by (answering questions) in your area of expertise. 2) Read the FAQs! 3) When you see good Q&A, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. ALSO, remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign (I stole this text from Vitaly) – Jacob Akkerboom Apr 24 '13 at 9:43
Thats great!!!I didn't know that.Many thanks for advices!! – Alex Apr 24 '13 at 9:52
In v9, GraphEmbedding[g] will give the vertex coordinates. – Szabolcs Apr 24 '13 at 10:08

## 1 Answer

To extract first coordinates of TerminalsCoordinates for each node:

(PropertyValue[{g,#}, "TerminalsCoordinates"]& /@ VertexList[g])[[All,1]]
`
-
Thanks Halmir!!! – Alex Apr 24 '13 at 15:11