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.

This doesn't work:

Mathematica graphics

Is there a way to do this? My real goal is to identify the second links in the graph below, which shows the results of a webcrawl (using this code). I'm open to another approach.

Mathematica graphics

share|improve this question
1  
I had a similar question a long time ago - David Carraher's answer may be useful for you. Good luck! stackoverflow.com/questions/7742126/… –  programming_historian Oct 19 '12 at 19:11
add comment

2 Answers

up vote 6 down vote accepted
Graph[{1, 2, Tooltip[3, "Label"]},
     {1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3, 3 \[UndirectedEdge] 1}]

Mathematica graphics

share|improve this answer
add comment

You can also explicitly label using VertexLabels and use Tooltip as the positioning:

Graph[{1 -> 2, 1 -> 3, 1 -> 4, 1 -> 5}, 
    VertexLabels -> {5 -> Placed["five", Tooltip]}, ImagePadding -> 20]

enter image description here

share|improve this answer
    
How do I accept both answers? –  George Wolfe Oct 19 '12 at 19:34
    
@GeorgeWolfe You can't... You can upvote both if you like them and they answered your question, but you can accept only one answer. Typically I suggest that people accept the one that they found the most useful or the one they ended up using in their code or the clearest one. However, different people have widely different metrics to break ties, ranging from tossing a coin to looking at the time stamps or accepting the answer from the lower rep user (I realize I lose out on the last two). Feel free to choose as you wish :) –  rm -rf Oct 19 '12 at 19:39
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.