Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 1 down vote accepted

To extract first coordinates of TerminalsCoordinates for each node:

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.