Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I tried to use VertexLabelStyle, but seemed not recognized in my system with version number 8.0.0.0. Is this expected or I have missed something? From the online documentation page, I don't see this option was added after version 8.0.0.0; it just says "New in version 8".

share|improve this question
    
Could you try Graph[{1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3, 3 \[UndirectedEdge] 1}, VertexLabels -> Table[i -> Subscript[v, i], {i, 3}], VertexLabelStyle -> Directive[Red, Italic, 20], ImagePadding -> 20] in your version and see what you get? This works fine in version 8.0.4. What you are seeing may be due to some fixes between 8.0.0 and 8.0.4 –  kguler Feb 21 '12 at 21:34
    
I also find it does not work in 8.0.0.0 –  Eli Lansey Feb 21 '12 at 21:45
    
@kguler: it says Graph::optx: Unknown option VertexLabelStyle in –  Qiang Li Feb 21 '12 at 22:15
add comment

1 Answer

Collecting the suggestions in the comments above:

In version 8.0.4,

  Graph[{1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3, 3 \[UndirectedEdge] 1},
  VertexLabels -> Table[i -> Subscript[v, i], {i, 3}], 
  VertexLabelStyle -> Directive[Red, Italic, 20], ImagePadding -> 20]

works fine. In version 8.0.0 it gives the error message

Graph::optx: Unknown option VertexLabelStyle in ...

So, most likely explanation is: another version 8.0.0 bug fixed in version 8.0.4.

share|improve this answer
add comment

Your Answer

 
discard

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.