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.

Is it possible to combine two edges into one with a double arrow?

For example:

GraphPlot[{1 -> 2, 2 -> 1}, VertexLabeling -> True, 
 DirectedEdges -> True]

results something like

enter image description here

Is it possible to change it to something like

enter image description here

without using the drawing tool to edit the graphics directly?

share|improve this question
    
Which version of Mathematica are you using? –  Szabolcs Apr 20 '13 at 19:02
    
version 8 on Mac. –  user0501 Apr 20 '13 at 19:05
add comment

1 Answer

up vote 2 down vote accepted

This is a hack, but it'll work with GraphPlot:

GraphPlot[{1 -> 2, 2 -> 1, 1 -> 3, 3 -> 2}, MultiedgeStyle -> .001, 
 DirectedEdges -> True]

enter image description here

share|improve this answer
    
Thanks, that works. But the combined line seems slightly thicker than the others, do you know how to deal with that? –  user0501 Apr 20 '13 at 19:23
    
@user0501 Unfortunately no. I'd have to search the docs more for that and right now I do not have the time. Also, ideally there should be a solution for Graph objects, not just GraphPlot. My answer is by no means complete. –  Szabolcs Apr 20 '13 at 19:35
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.